Module: Enumerable
- Defined in:
- lib/zermelo.rb
Instance Method Summary collapse
Instance Method Details
#each_with_object(memo) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/zermelo.rb', line 12 def each_with_object(memo) return to_enum :each_with_object, memo unless block_given? each do |element| yield element, memo end memo end |