Class: Hash

Inherits:
Object show all
Defined in:
lib/mharris_ext/enumerable.rb

Instance Method Summary collapse

Instance Method Details

#map_valueObject


92
93
94
95
96
# File 'lib/mharris_ext/enumerable.rb', line 92

def map_value
  res = {}
  each { |k,v| res[k] = yield(v) }
  res
end