Sha256: c00512d662888cdc8d19d196a8f293dd284cd69248e620d34602208505c43f8a

Contents?: true

Size: 326 Bytes

Versions: 23

Compression:

Stored size: 326 Bytes

Contents

module Enumerable
  # Standard in Ruby 1.8.8. See official documentation[http://ruby-doc.org/core-1.9/classes/Enumerable.html]
  def each_with_object(memo, &block)
    return to_enum(:each_with_object, memo) unless block_given?
    each {|obj| block.call(obj, memo)}
    memo
  end unless method_defined? :each_with_object
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
backports-1.18.2 lib/backports/1.8.8/enumerable.rb
backports-1.18.1 lib/backports/1.8.8/enumerable.rb
backports-1.18.0 lib/backports/1.8.8/enumerable.rb
backports-1.17.1 lib/backports/1.8.8/enumerable.rb
backports-1.17.0 lib/backports/1.8.8/enumerable.rb
backports-1.16.7 lib/backports/1.8.8/enumerable.rb
backports-1.16.6 lib/backports/1.8.8/enumerable.rb
backports-1.16.5 lib/backports/1.8.8/enumerable.rb
backports-1.16.4 lib/backports/1.8.8/enumerable.rb
backports-1.16.3 lib/backports/1.8.8/enumerable.rb
backports-1.16.2 lib/backports/1.8.8/enumerable.rb
backports-1.16.1 lib/backports/1.8.8/enumerable.rb
backports-1.15.0 lib/backports/1.8.8/enumerable.rb
backports-1.14.1 lib/backports/1.8.8/enumerable.rb
backports-1.14.0 lib/backports/1.8.8/enumerable.rb
backports-1.13.3 lib/backports/1.8.8/enumerable.rb
backports-1.13.2 lib/backports/1.8.8/enumerable.rb
backports-1.13.1 lib/backports/1.8.8/enumerable.rb
backports-1.13.0 lib/backports/1.8.8/enumerable.rb
backports-1.12.3 lib/backports/1.8.8/enumerable.rb