Method: Axlsx::ColBreaks#to_xml_string
- Defined in:
- lib/axlsx/workbook/worksheet/col_breaks.rb
#to_xml_string(str = '') ⇒ Object
Serialize the collection to xml
28 29 30 31 32 33 |
# File 'lib/axlsx/workbook/worksheet/col_breaks.rb', line 28 def to_xml_string(str='') return if empty? str << ('<colBreaks count="' << size.to_s << '" manualBreakCount="' << size.to_s << '">') each { |brk| brk.to_xml_string(str) } str << '</colBreaks>' end |