module Odf::Component::XmlComponent
Public Class Methods
included(base)
click to toggle source
# File lib/odf/component/xml_component.rb, line 4 def self.included(base) base.class_eval { attr_reader :xml } end
new(document)
click to toggle source
Calls superclass method
# File lib/odf/component/xml_component.rb, line 8 def initialize(document) super initialize_xml end
Public Instance Methods
content()
click to toggle source
# File lib/odf/component/xml_component.rb, line 13 def content wrap_xml xml.to_xml end
Private Instance Methods
initialize_xml()
click to toggle source
# File lib/odf/component/xml_component.rb, line 19 def initialize_xml @xml = Odf::Utils::Xml.new xml.encoding = "UTF-8" end
wrap_xml()
click to toggle source
# File lib/odf/component/xml_component.rb, line 24 def wrap_xml true end