Class: Axlsx::OutlinePr

Inherits:
Object
  • Object
show all
Includes:
Accessors, OptionsParser, SerializedAttributes
Defined in:
lib/axlsx/workbook/worksheet/outline_pr.rb

Overview

The OutlinePr class manages serialization of a worksheet's outlinePr element, which provides various options to control outlining.

Instance Method Summary collapse

Methods included from SerializedAttributes

#declared_attributes, included, #serialized_attributes, #serialized_element_attributes, #serialized_tag

Methods included from OptionsParser

#parse_options

Constructor Details

#initialize(options = {}) ⇒ OutlinePr

Creates a new OutlinePr object

Parameters:

  • options (Hash) (defaults to: {})

    used to create the outline_pr



22
23
24
# File 'lib/axlsx/workbook/worksheet/outline_pr.rb', line 22

def initialize(options = {})
  parse_options options
end

Instance Method Details

#to_xml_string(str = '') ⇒ String

Serialize the object

Parameters:

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

    serialized output will be appended to this object if provided.

Returns:

  • (String)


29
30
31
# File 'lib/axlsx/workbook/worksheet/outline_pr.rb', line 29

def to_xml_string(str = '')
  str << "<outlinePr #{serialized_attributes} />"
end