hsh.each_key {| key | block } â hshhsh.each_key â an_enumerator
Instance Public methods
Calls block once for each key in hsh, passing the key as
a parameter.
If no block is given, an enumerator is returned instead.
h = { "a" => 100, "b" => 200 }
h.each_key {|key| puts key }
produces:
a
b