Module: Enumerable

Defined in:
lib/jrubyfx/utils.rb

Instance Method Summary collapse

Instance Method Details

#map_find(&block) ⇒ Object


59
60
61
62
63
64
# File 'lib/jrubyfx/utils.rb', line 59

def map_find(&block)
  m = {}
  m[self.find do |i|
    m[i] = block.call(i)
  end]
end