ruby hash syntax code example Example: how to make a new hash ruby my_hash = Hash.new #=> { } # OR my_hash = {}