Module: Odf::Component::XmlComponent
- Defined in:
- lib/odf/component/xml_component.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
4 5 6 |
# File 'lib/odf/component/xml_component.rb', line 4 def self.included(base) base.class_eval { attr_reader :xml } end |
Instance Method Details
#content ⇒ Object
13 14 15 16 |
# File 'lib/odf/component/xml_component.rb', line 13 def content wrap_xml xml.to_xml end |
#initialize(document) ⇒ Object
8 9 10 11 |
# File 'lib/odf/component/xml_component.rb', line 8 def initialize(document) super initialize_xml end |