Method: Axlsx::App#to_xml_string
- Defined in:
- lib/axlsx/doc_props/app.rb
#to_xml_string(str = '') ⇒ String
Serialize the app.xml document
223 224 225 226 227 228 |
# File 'lib/axlsx/doc_props/app.rb', line 223 def to_xml_string(str = '') str << '<?xml version="1.0" encoding="UTF-8"?>' str << '<Properties xmlns="' << APP_NS << '" xmlns:vt="' << APP_NS_VT << '">' str << instance_values.map { |key, value| '<' << Axlsx.camel(key) << '>' << value.to_s << '</' << Axlsx.camel(key) << '>' }.join str << '</Properties>' end |