method

each_key

v1_8_7_72 - Show latest stable - Class: Hash
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