Module: Odf::Component::XmlComponent

Included in:
Content, Manifest, Meta, Settings, Styles
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

#contentObject



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