class OpenXml::Docx::Parts::Footer

Attributes

children[R]
relationships[R]

Public Class Methods

new() click to toggle source
# File lib/openxml/docx/parts/footer.rb, line 12
def initialize
  @children = []
  @relationships = OpenXml::Parts::Rels.new
end

Public Instance Methods

<<(child) click to toggle source
# File lib/openxml/docx/parts/footer.rb, line 17
def <<(child)
  children << child
end
to_xml() click to toggle source
# 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