each_value() public

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

h = { "a" => 100, "b" => 200 }
h.each_value {|value| puts value }

produces:

100
200
Show source
Register or log in to add new notes.