Module: Oga::XML::ToXML

Included in:
Attribute, Document, Node
Defined in:
lib/oga/xml/to_xml.rb

Overview

Module that provides a #to_xml method that serialises the current node back to XML.

Instance Method Summary collapse

Instance Method Details

#to_xmlString

Returns:

  • (String)


7
8
9
# File 'lib/oga/xml/to_xml.rb', line 7

def to_xml
  Generator.new(self).to_xml
end