Method: Axlsx::PrintOptions#to_xml_string

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

#to_xml_string(str = '') ⇒ String

Note:

As all attributes default to "false" according to the xml schema definition, the generated xml includes only those attributes that are set to true.

Serializes the page options element.

Parameters:

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

Returns:

  • (String)


35
36
37
# File 'lib/axlsx/workbook/worksheet/print_options.rb', line 35

def to_xml_string(str = '')
  serialized_tag 'printOptions', str
end