Module: Enumerable

Instance Method Summary collapse

Instance Method Details

#inject(init) ⇒ Object


325
326
327
328
329
330
331
# File 'lib/soap/property.rb', line 325

def inject(init)
  result = init
  each do |item|
    result = yield(result, item)
  end
  result
end