Sha256: 2469d405ce0aa6927d42175f0e5229a28586a2bb53b74e4d32aff081356c2c93

Contents?: true

Size: 693 Bytes

Versions: 1

Compression:

Stored size: 693 Bytes

Contents

module OpenXml
  module Docx
    module Parts
      class Footer < OpenXml::Part
        include RootNamespaces

        use_namespaces :wpc, :mo, :mv, :o, :r, :m, :v, :wp14, :wp, :w10, :w14, :w15, :wpg, :wpi, :wne, :wps, :w, :mc, :a, :a14
        can_ignore :w14, :w15, :wp14, :a14

        attr_reader :children

        def initialize
          @children = []
        end

        def <<(child)
          children << child
        end

        def to_xml
          build_xml do |xml|
            xml.ftr(root_namespaces) {
              xml.parent.namespace = :w
              children.each { |child| child.to_xml(xml) }
            }
          end
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openxml-docx-0.10.0 lib/openxml/docx/parts/footer.rb