Class: Writexlsx::Package::Core
Constant Summary
collapse
- App_package =
'application/vnd.openxmlformats-package.'
- App_document =
'application/vnd.openxmlformats-officedocument.'
Instance Method Summary
collapse
#r_id_attributes, #write_color, #write_xml_declaration, #xml_str
Constructor Details
#initialize ⇒ Core
Returns a new instance of Core.
15
16
17
18
19
|
# File 'lib/write_xlsx/package/core.rb', line 15
def initialize
@writer = Package::XMLWriterSimple.new
@properties = {}
@createtime = [Time.now.gmtime]
end
|
Instance Method Details
#assemble_xml_file ⇒ Object
25
26
27
28
29
|
# File 'lib/write_xlsx/package/core.rb', line 25
def assemble_xml_file
write_xml_declaration do
write_cp_core_properties { write_cp_core_properties_base }
end
end
|
#set_properties(properties) ⇒ Object
31
32
33
|
# File 'lib/write_xlsx/package/core.rb', line 31
def set_properties(properties)
@properties = properties
end
|
#set_xml_writer(filename) ⇒ Object
21
22
23
|
# File 'lib/write_xlsx/package/core.rb', line 21
def set_xml_writer(filename)
@writer.set_xml_writer(filename)
end
|