module Rpub class XmlFile # @return [Builder::XmlMarkup] attr_reader :xml attr_reader :book def initialize(book = nil) @xml = Builder::XmlMarkup.new :indent => 2 @book = book end # @return [String] render this file and output as string def to_s render xml.target! end end end