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

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



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

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)


30
31
32
33
34
# File 'lib/axlsx/workbook/worksheet/outline_pr.rb', line 30

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