Method: Axlsx::Col#to_xml_string

Defined in:
lib/axlsx/workbook/worksheet/col.rb

#to_xml_string(str = '') ⇒ String

Serialize this columns data to an xml string

Parameters:

  • str (String) (defaults to: '')

Returns:

  • (String)


137
138
139
140
141
# File 'lib/axlsx/workbook/worksheet/col.rb', line 137

def to_xml_string(str = '')
  str << '<col '
  serialized_attributes str
  str << '/>'
end