Module: Enumerable

Defined in:
lib/grudge/base.rb

Overview

Grudge

Instance Method Summary collapse

Instance Method Details

#mashObject



11
12
13
# File 'lib/grudge/base.rb', line 11

def mash
  self.inject({}) { |a,i| a.merge( yield(i) ) }
end