Method: Rpub::XmlFile#initialize
- Defined in:
- lib/rpub/xml_file.rb
#initialize(book = nil) ⇒ XmlFile
Returns a new instance of XmlFile.
8 9 10 11 |
# File 'lib/rpub/xml_file.rb', line 8 def initialize(book = nil) @xml = Builder::XmlMarkup.new :indent => 2 @book = book end |