Angelo Farias wrote in post #1021017:
> each and fetch hash doesn work
They work fine:
hash = {'a' => 10, 'b' => 20}
hash.each do |key, val|
puts "#{key} = #{val}"
end
--output:--
a = 10
b = 20
puts hash.fetch('c', "sorry")
--output:--
sorry