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

#declared_attributes, 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


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

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)

50
51
52
# File 'lib/axlsx/workbook/worksheet/sheet_format_pr.rb', line 50

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