Class: Writexlsx::Package::RichValue
- Inherits:
-
Object
- Object
- Writexlsx::Package::RichValue
- Includes:
- Utility::Common, Utility::XmlPrimitives
- Defined in:
- lib/write_xlsx/package/rich_value.rb
Constant Summary
Constants included from Utility::Common
Utility::Common::PERL_TRUE_VALUES
Instance Attribute Summary collapse
-
#embedded_images ⇒ Object
Returns the value of attribute embedded_images.
Instance Method Summary collapse
- #assemble_xml_file ⇒ Object
-
#initialize ⇒ RichValue
constructor
A new instance of RichValue.
- #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 ⇒ RichValue
Returns a new instance of RichValue.
16 17 18 19 |
# File 'lib/write_xlsx/package/rich_value.rb', line 16 def initialize @writer = Package::XMLWriterSimple.new @embedded_images = [] end |
Instance Attribute Details
#embedded_images ⇒ Object
Returns the value of attribute embedded_images.
14 15 16 |
# File 'lib/write_xlsx/package/rich_value.rb', line 14 def @embedded_images end |
Instance Method Details
#assemble_xml_file ⇒ Object
25 26 27 28 29 |
# File 'lib/write_xlsx/package/rich_value.rb', line 25 def assemble_xml_file write_xml_declaration do write_rv_data end end |
#set_xml_writer(filename) ⇒ Object
21 22 23 |
# File 'lib/write_xlsx/package/rich_value.rb', line 21 def set_xml_writer(filename) @writer.set_xml_writer(filename) end |