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