Method: Axlsx::App#to_xml

Defined in:
lib/axlsx/doc_props/app.rb

#to_xmlString

Generate an app.xml document

Returns:

  • (String)

    The document as a string



167
168
169
170
171
172
173
174
175
176
# File 'lib/axlsx/doc_props/app.rb', line 167

def to_xml()
  builder = Nokogiri::XML::Builder.new(:encoding => ENCODING) do |xml|
    xml.send(:Properties, :xmlns => APP_NS, :'xmlns:vt' => APP_NS_VT) {
      self.instance_values.each do |name, value|
        xml.send(name, value)
      end
    }
  end      
  builder.to_xml
end