How to add new item to hash October 15, 2022 by Tarik Create the hash: hash = {:item1 => 1} Add a new item to it: hash[:item2] = 2