class OpenXml::Docx::Parts::Settings

Attributes

settings[R]

Public Class Methods

new() click to toggle source
# File lib/openxml/docx/parts/settings.rb, line 11
def initialize
  @settings = []
end

Public Instance Methods

<<(child) click to toggle source
# File lib/openxml/docx/parts/settings.rb, line 15
def <<(child)
  settings << child
end
to_xml() click to toggle source
# File lib/openxml/docx/parts/settings.rb, line 19
def to_xml
  build_standalone_xml do |xml|
    xml.settings(root_namespaces) {
      xml.parent.namespace = :w
      settings.each { |setting| setting.to_xml(xml) }
    }
  end
end