each_key() public

Calls block once for each key in hsh, passing the key as a parameter.

   h = { "a" => 100, "b" => 200 }
   h.each_key {|key| puts key }

produces:

   a
   b
Show source
Register or log in to add new notes.