Class: OpenXml::Docx::Parts::Footer
- Inherits:
-
Part
- Object
- Part
- OpenXml::Docx::Parts::Footer
- Includes:
- RootNamespaces
- Defined in:
- lib/openxml/docx/parts/footer.rb
Constant Summary
Constants included from RootNamespaces
RootNamespaces::POSSIBLE_NAMESPACES
Instance Attribute Summary collapse
-
#children ⇒ Object
readonly
Returns the value of attribute children.
-
#relationships ⇒ Object
readonly
Returns the value of attribute relationships.
Instance Method Summary collapse
- #<<(child) ⇒ Object
-
#initialize ⇒ Footer
constructor
A new instance of Footer.
- #to_xml ⇒ Object
Methods included from RootNamespaces
Constructor Details
Instance Attribute Details
#children ⇒ Object (readonly)
Returns the value of attribute children.
10 11 12 |
# File 'lib/openxml/docx/parts/footer.rb', line 10 def children @children end |
#relationships ⇒ Object (readonly)
Returns the value of attribute relationships.
10 11 12 |
# File 'lib/openxml/docx/parts/footer.rb', line 10 def relationships @relationships end |
Instance Method Details
#<<(child) ⇒ Object
17 18 19 |
# File 'lib/openxml/docx/parts/footer.rb', line 17 def <<(child) children << child end |
#to_xml ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/openxml/docx/parts/footer.rb', line 21 def to_xml build_xml do |xml| xml.ftr(root_namespaces) { xml.parent.namespace = :w children.each { |child| child.to_xml(xml) } } end end |