Method: Axlsx::AutoFilter#to_xml_string

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

#to_xml_string(str = '') ⇒ String

serialize the object

Returns:

  • (String)


69
70
71
72
73
74
# File 'lib/axlsx/workbook/worksheet/auto_filter/auto_filter.rb', line 69

def to_xml_string(str='')
  return unless range
  str << "<autoFilter ref='#{range}'>"
  columns.each { |filter_column| filter_column.to_xml_string(str) }
  str << "</autoFilter>"
end