In regards to adding an key => value pair to an existing populated hash in Ruby, I'm in the process of working through Apress' Beginning Ruby and have just finished the hashes chapter.
I am trying to find the simplest way to achieve the same results with hashes as this does with arrays:
x = [1, 2, 3, 4]
x << 5
p x