Class: Writexlsx::Package::RichValueStructure
- Inherits:
-
Object
- Object
- Writexlsx::Package::RichValueStructure
- Includes:
- Utility::XmlPrimitives
- Defined in:
- lib/write_xlsx/package/rich_value_structure.rb
Overview
RichValueStructure - A class for writing the Excel XLSX rdrichvaluestructure.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 Attribute Summary collapse
-
#has_embedded_descriptions ⇒ Object
writeonly
Sets the attribute has_embedded_descriptions.
Instance Method Summary collapse
- #assemble_xml_file ⇒ Object
-
#initialize ⇒ RichValueStructure
constructor
A new instance of RichValueStructure.
- #set_xml_writer(filename) ⇒ Object
Methods included from Utility::XmlPrimitives
#r_id_attributes, #write_color, #write_xml_declaration, #xml_str
Constructor Details
#initialize ⇒ RichValueStructure
Returns a new instance of RichValueStructure.
24 25 26 27 |
# File 'lib/write_xlsx/package/rich_value_structure.rb', line 24 def initialize @writer = Package::XMLWriterSimple.new @has_embedded_descriptions = false end |
Instance Attribute Details
#has_embedded_descriptions=(value) ⇒ Object (writeonly)
Sets the attribute has_embedded_descriptions
22 23 24 |
# File 'lib/write_xlsx/package/rich_value_structure.rb', line 22 def (value) @has_embedded_descriptions = value end |
Instance Method Details
#assemble_xml_file ⇒ Object
33 34 35 36 37 |
# File 'lib/write_xlsx/package/rich_value_structure.rb', line 33 def assemble_xml_file write_xml_declaration do write_rv_structures end end |
#set_xml_writer(filename) ⇒ Object
29 30 31 |
# File 'lib/write_xlsx/package/rich_value_structure.rb', line 29 def set_xml_writer(filename) @writer.set_xml_writer(filename) end |