Method: XML::Mapping#fill_into_xml

Defined in:
lib/xml/mapping/base.rb

#fill_into_xml(xml, options = {:mapping=>:_default}) ⇒ Object

Fill self’s state into the xml node (REXML::Element) xml. All the nodes for this object’s class are processed (i.e. have their #obj_to_xml method called) in the order of their definition inside the class.



216
217
218
219
220
# File 'lib/xml/mapping/base.rb', line 216

def fill_into_xml(xml, options={:mapping=>:_default})
  self.class.all_xml_mapping_nodes(:mapping=>options[:mapping]).each do |node|
    node.obj_to_xml self,xml
  end
end