Class: Axlsx::DefinedNames
- Inherits:
-
SimpleTypedList
- Object
- Array
- SimpleTypedList
- Axlsx::DefinedNames
- Defined in:
- lib/axlsx/workbook/defined_names.rb
Overview
a simple types list of DefinedName objects
Instance Method Summary collapse
-
#initialize ⇒ DefinedNames
constructor
creates the DefinedNames object.
-
#to_xml_string(str = +'')) ⇒ String
Serialize to xml.
Constructor Details
#initialize ⇒ DefinedNames
creates the DefinedNames object
7 8 9 |
# File 'lib/axlsx/workbook/defined_names.rb', line 7 def initialize super(DefinedName) end |
Instance Method Details
#to_xml_string(str = +'')) ⇒ String
Serialize to xml
14 15 16 17 18 19 20 |
# File 'lib/axlsx/workbook/defined_names.rb', line 14 def to_xml_string(str = +'') return if empty? str << '<definedNames>' each { |defined_name| defined_name.to_xml_string(str) } str << '</definedNames>' end |