Method: Axlsx::SheetProtection#to_xml_string

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

#to_xml_string(str = '') ⇒ String

Serialize the object

Parameters:

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

Returns:

  • (String)


78
79
80
81
82
# File 'lib/axlsx/workbook/worksheet/sheet_protection.rb', line 78

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