Sha256: 91655f6ee8703cf6d72e64e53c78bef777af11dfc1109a0551c8845c8f57715f
Contents?: true
Size: 312 Bytes
Versions: 30
Compression:
Stored size: 312 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) return to_enum(:each_with_object, memo) unless block_given? each {|obj| yield obj, memo} memo end unless method_defined? :each_with_object end
Version data entries
30 entries across 30 versions & 2 rubygems