Module: Enumerable

Included in:
Ruote::DefaultHistory, Ruote::StorageParticipant
Defined in:
lib/ruote/util/mpatch.rb

Instance Method Summary collapse

Instance Method Details

#each_with_object(o, &block) ⇒ Object


32
33
34
35
36
37
38
# File 'lib/ruote/util/mpatch.rb', line 32

def each_with_object(o, &block)

  self.inject(o) do |oo, e|
    block.call(e, oo)
    oo
  end
end