Sha256: 19e0a9a1fa69aede436842a8e856d74eee9e63550cae7f254b7817726e456226
Contents?: true
Size: 508 Bytes
Versions: 3
Compression:
Stored size: 508 Bytes
Contents
module OpenXml module Docx module Parts class Settings < OpenXml::Part attr_reader :settings def initialize @settings = [] end def to_xml build_standalone_xml do |xml| xml.settings("xmlns:w" => "http://schemas.openxmlformats.org/wordprocessingml/2006/main") { xml.parent.namespace = xml.parent.namespace_definitions.find { |ns| ns.prefix == "w" } } end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
openxml-docx-0.9.0 | lib/openxml/docx/parts/settings.rb |
openxml-docx-0.8.0 | lib/openxml/docx/parts/settings.rb |
openxml-docx-0.8.0.beta1 | lib/openxml/docx/parts/settings.rb |