Module: Buby::Implants::Enumerable

Included in:
Enumerable
Defined in:
lib/buby/implants/jruby.rb

Instance Method Summary collapse

Instance Method Details

#each_with_object(memo) ⇒ Object

XXX backport for 1.8.7



22
23
24
25
26
27
# File 'lib/buby/implants/jruby.rb', line 22

def each_with_object(memo)
  inject(memo) do |memo, item|
    yield item, memo
    memo
  end
end