Sha256: 2ec7e30ca3742fcb394817d300b0aede7f3c57e9ab1305ae0b46984f3744a378
Contents?: true
Size: 326 Bytes
Versions: 40
Compression:
Stored size: 326 Bytes
Contents
require 'ox' class Sample attr_accessor :a, :b, :c def initialize(a, b, c) @a = a @b = b @c = c end end # File # Create Object obj = Sample.new(1, "bee", ['x', :y, 7.0]) # Now dump the Object to an XML String. xml = Ox.dump(obj) # Convert the object back into a Sample Object. obj2 = Ox.parse_obj(xml)
Version data entries
40 entries across 40 versions & 1 rubygems