class OpenXml::Docx::Parts::Header
Attributes
children[R]
relationships[R]
Public Class Methods
new()
click to toggle source
# File lib/openxml/docx/parts/header.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/header.rb, line 17 def <<(child) children << child end
to_xml()
click to toggle source
# File lib/openxml/docx/parts/header.rb, line 21 def to_xml build_xml do |xml| xml.hdr(root_namespaces) { xml.parent.namespace = :w children.each { |child| child.to_xml(xml) } } end end