The problem is once you do something, the code stops running, that way any information you added gets forgotten again. You should use a loop to keep the data, or at lest print the hash after each instruction.
keep = "y" while keep == "y"#While the variable is 'y', do this: #code for the hash puts "Keep going? Type 'y'"#asks if the user wants to continue keep = gets.chomp#resets the keep variable to the user's choice end
I hope this