Class: Writexlsx::Package::RichValueTypes
- Inherits:
-
Object
- Object
- Writexlsx::Package::RichValueTypes
- Includes:
- Utility::XmlPrimitives
- Defined in:
- lib/write_xlsx/package/rich_value_types.rb
Overview
RichValueTypes - A class for writing the Excel XLSX rdRichValueTypes.xml file.
Used in conjunction with Excel::Writer::XLSX
Copyright 2000-2024, John McNamara, [email protected]
Convert to Ruby by Hideo NAKAMURA, [email protected]
Instance Method Summary collapse
- #assemble_xml_file ⇒ Object
-
#initialize ⇒ RichValueTypes
constructor
A new instance of RichValueTypes.
- #set_xml_writer(filename) ⇒ Object
Methods included from Utility::XmlPrimitives
#r_id_attributes, #write_color, #write_xml_declaration, #xml_str
Constructor Details
#initialize ⇒ RichValueTypes
Returns a new instance of RichValueTypes.
21 22 23 |
# File 'lib/write_xlsx/package/rich_value_types.rb', line 21 def initialize @writer = Package::XMLWriterSimple.new end |
Instance Method Details
#assemble_xml_file ⇒ Object
29 30 31 32 33 |
# File 'lib/write_xlsx/package/rich_value_types.rb', line 29 def assemble_xml_file write_xml_declaration do write_rv_types_info end end |
#set_xml_writer(filename) ⇒ Object
25 26 27 |
# File 'lib/write_xlsx/package/rich_value_types.rb', line 25 def set_xml_writer(filename) @writer.set_xml_writer(filename) end |