Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
lib/ruote/util/mpatch.rb

Instance Method Summary collapse

Instance Method Details

#remap(&block) ⇒ Object

A shortcut for

hash.each_with_object({}) { |(k, v), h)| ... }


48
49
50
51
# File 'lib/ruote/util/mpatch.rb', line 48

def remap(&block)

  each_with_object({}, &block)
end