Class: Nanaimo::Writer::XMLWriter

Inherits:
Nanaimo::Writer show all
Defined in:
lib/nanaimo/writer/xml.rb

Overview

Transforms native ruby objects or Plist objects into their XML Plist string representation.

Constant Summary

Constants inherited from Nanaimo::Writer

UTF8

Instance Method Summary collapse

Methods inherited from Nanaimo::Writer

#initialize

Constructor Details

This class inherits a constructor from Nanaimo::Writer

Instance Method Details

#writeObject


13
14
15
16
17
18
# File 'lib/nanaimo/writer/xml.rb', line 13

def write
  write_xml_header
  write_object(@plist.root_object)
  write_newline
  write_xml_footer
end