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