Class: Axlsx::SheetFormatPr

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

Overview

Sheet formatting properties /xsd:complexType

Instance Method Summary collapse

Methods included from OptionsParser

#parse_options

Methods included from SerializedAttributes

included, #serialized_attributes, #serialized_element_attributes, #serialized_tag

Constructor Details

#initialize(options = {}) ⇒ SheetFormatPr

creates a new sheet_format_pr object

Parameters:

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

    initialization options

  • [Integer] (Hash)

    a customizable set of options

  • [Float] (Hash)

    a customizable set of options

  • [Boolean] (Hash)

    a customizable set of options



33
34
35
36
# File 'lib/axlsx/workbook/worksheet/sheet_format_pr.rb', line 33

def initialize(options = {})
  set_defaults
  parse_options options
end

Instance Method Details

#to_xml_string(str = +'')) ⇒ String

serializes this object to an xml string

Parameters:

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

    The string this objects serialization will be appended to

Returns:

  • (String)


51
52
53
54
55
# File 'lib/axlsx/workbook/worksheet/sheet_format_pr.rb', line 51

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