Class: Writexlsx::Package::Custom
- Inherits:
-
Object
- Object
- Writexlsx::Package::Custom
- Includes:
- Utility::Common, Utility::XmlPrimitives
- Defined in:
- lib/write_xlsx/package/custom.rb
Constant Summary
Constants included from Utility::Common
Utility::Common::PERL_TRUE_VALUES
Instance Method Summary collapse
- #assemble_xml_file ⇒ Object
-
#initialize ⇒ Custom
constructor
A new instance of Custom.
-
#set_properties(properties) ⇒ Object
Set the document properties.
- #set_xml_writer(filename) ⇒ Object
Methods included from Utility::XmlPrimitives
#r_id_attributes, #write_color, #write_xml_declaration, #xml_str
Methods included from Utility::Common
#absolute_char, #check_parameter, #float_to_str, #ptrue?, #put_deprecate_message
Constructor Details
#initialize ⇒ Custom
Returns a new instance of Custom.
13 14 15 16 17 |
# File 'lib/write_xlsx/package/custom.rb', line 13 def initialize @writer = Package::XMLWriterSimple.new @properties = [] @pid = 1 end |
Instance Method Details
#assemble_xml_file ⇒ Object
23 24 25 26 27 |
# File 'lib/write_xlsx/package/custom.rb', line 23 def assemble_xml_file write_xml_declaration do write_properties end end |
#set_properties(properties) ⇒ Object
Set the document properties.
32 33 34 |
# File 'lib/write_xlsx/package/custom.rb', line 32 def set_properties(properties) @properties = properties end |
#set_xml_writer(filename) ⇒ Object
19 20 21 |
# File 'lib/write_xlsx/package/custom.rb', line 19 def set_xml_writer(filename) @writer.set_xml_writer(filename) end |