Logo

Programming-Idioms

History of Idiom 104 > diff from v14 to v15

Edit summary for version 15 by ricc:
New Ruby implementation by user [ricc]

Version 14

2021-12-23, 09:17:16

Version 15

2022-04-19, 14:20:08

Idiom #104 Save object into XML file

Write the contents of the object x into the file data.xml.

Idiom #104 Save object into XML file

Write the contents of the object x into the file data.xml.

Variables
x,data,xml
Variables
x,data,xml
Code
# TODO(ricc): finish this

class Person
  attr_accessor :name, :surname, :age
end
Doc URL
https://stackoverflow.com/questions/58662688/xml-serialization-from-class-instance-in-ruby-with-custom-attributes
Origin
https://multi-io.github.io/xml-mapping/#label-Example
Demo URL
https://multi-io.github.io/xml-mapping/#label-Example