Module: Enumerable

Included in:
SOAP::Mapping::SchemaComplexTypeDefinition, SOAP::Property, SOAP::SOAPArray, SOAP::SOAPElement, SOAP::SOAPStruct, XSD::NamedElements
Defined in:
lib/soap/property.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) inject(init)



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