Module: Enumerable

Defined in:
lib/texlab/hash.rb

Instance Method Summary collapse

Instance Method Details

#mashObject

map-hash



37
38
39
40
41
42
43
44
# File 'lib/texlab/hash.rb', line 37

def mash
  res = {}
  each do |*x|
    k,v = yield(*x)
    res[k] = v
  end
  res
end