I\'d like to replace each value in a hash with value.some_method.
value
value.some_method
For example, for given a simple hash:
{\"a\" => \"b\",
Try this function:
h = {"a" => "b", "c" => "d"} h.each{|i,j| j.upcase!} # now contains {"a" => "B", "c" => "D"}.