I\'m new to Ruby and don\'t know how to add new item to already existing hash. For example, first I construct hash:
hash = {item1: 1}
after
Create the hash:
hash = {:item1 => 1}
Add a new item to it:
hash[:item2] = 2