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 fi
key => value
If you want to add more than one:
hash = {:a => 1, :b => 2} hash.merge! :c => 3, :d => 4 p hash