Class: Rubyword::Writer::Part::DocPropsCustom
- Defined in:
- lib/rubyword/writer/part/doc_props_custom.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Rubyword::Writer::Part::Base
Instance Method Details
#write ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/rubyword/writer/part/doc_props_custom.rb', line 6 def write # 需要定制 builder = Nokogiri::XML::Builder.new(:encoding => 'UTF-8') do |xml| xml.Properties(xmlns: 'http://schemas.openxmlformats.org/officeDocument/2006/custom-properties', 'xmlns:vt' => 'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes') end builder.to_xml end |