Class: Rubyword::Writer::Part::DocPropsCustom

Inherits:
Base
  • Object
show all
Defined in:
lib/rubyword/writer/part/doc_props_custom.rb

Instance Attribute Summary

Attributes inherited from Base

#rubyword, #section

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Rubyword::Writer::Part::Base

Instance Method Details

#writeObject



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