Method: Axlsx::DefinedName#to_xml_string
- Defined in:
- lib/axlsx/workbook/defined_name.rb
#to_xml_string(str = '') ⇒ Object
121 122 123 124 125 126 |
# File 'lib/axlsx/workbook/defined_name.rb', line 121 def to_xml_string(str='') raise ArgumentError, 'you must specify the name for this defined name. Please read the documentation for Axlsx::DefinedName for more details' unless name str << ('<definedName ' << 'name="' << name << '" ') serialized_attributes str str << ('>' << @formula << '</definedName>') end |