Method: Axlsx::Cols#to_xml_string
- Defined in:
- lib/axlsx/workbook/worksheet/cols.rb
#to_xml_string(str = '') ⇒ String
Serialize the Cols object
16 17 18 19 20 21 |
# File 'lib/axlsx/workbook/worksheet/cols.rb', line 16 def to_xml_string(str = '') return if empty? str << '<cols>' each { |item| item.to_xml_string(str) } str << '</cols>' end |