Iterando em Hashes


Não estou conseguindo passar por esse

matz = { "Nome" => "Yukihiro",
"Sobrenome" => "Matsumoto",
"Idade" => 47,
"Nacionalidade" => "Japanese",
"Apelido" => "Matz"

puts nome, matz[nome]


In English:

Is this Exercise 2? We are asked to iterate over the hash and print only the values, and not the key names:

matz.each do |key, val|
  puts matz[key]

Even though we don't refer to val we still need to internalize it.