Method: Hash#map2
- Defined in:
-
lib/rmtools/enumerable/hash.rb,
ext/rmtools.cpp
Hashes map methods that doesn’t make hash into array
62 63 64 65 66 |
# File 'lib/rmtools/enumerable/hash.rb', line 62 def map2 h = {} each {|k, v| h[k] = yield(k,v)} h end |