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 hash as:
h = Hash.new => {}
Now insert into hash as:
h = Hash["one" => 1]