Sha256: ea3e00b1f40218b395f98579f980169eb875b711ee875e37cde20a17745e5315

Contents?: true

Size: 476 Bytes

Versions: 4

Compression:

Stored size: 476 Bytes

Contents

#:invisible:
$:.unshift "../lib"
begin
  Object.send(:remove_const, "Address")  # name clash with order_usage...
rescue
end
require 'company' #<=
#:visible:
c = Company.load_from_file('company.xml') #<=
c.name #<=
c.customers.size #<=
c.customers[1] #<=
c.customers[1].name #<=
c.customers[0].name #<=
c.customers[0].name = 'James Tiberius Kirk' #<=
c.customers << Customer.new('cm','Cookie Monster') #<=
xml2 = c.save_to_xml #<=
#:invisible_retval:
xml2.write($stdout,2) #<=

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
xml-mapping-0.9.1 examples/company_usage.intin.rb
pdf-labels-1.0.0 vendor/xml-mapping/examples/company_usage.intin.rb
xml-mapping-0.8.1 examples/company_usage.intin.rb
xml-mapping-0.8 examples/company_usage.intin.rb