Method: Axlsx::WorkbookViews#to_xml_string

Defined in:
lib/axlsx/workbook/workbook_views.rb

#to_xml_string(str = '') ⇒ String

Serialize to xml

Parameters:

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

Returns:

  • (String)


13
14
15
16
17
18
# File 'lib/axlsx/workbook/workbook_views.rb', line 13

def to_xml_string(str = '')
  return if empty?
  str << "<bookViews>"
  each { |view| view.to_xml_string(str) }
  str << '</bookViews>'
end