module Hash_hmap
Public Instance Methods
hmap(&block)
click to toggle source
# File lib/objectification/refinements/hash.rb, line 3 def hmap(&block) Hash[self.map { |k,v| block.call k,v }] end
# File lib/objectification/refinements/hash.rb, line 3 def hmap(&block) Hash[self.map { |k,v| block.call k,v }] end