module SugarRefinery::Mash

Public Instance Methods

mash() { |kv| ... } click to toggle source
# File lib/sugar_refinery/mash.rb, line 6
def mash
  ret = {}
  each{ |kv| ret.store( *(yield(kv)[0,2]) ) }
  ret
end