Class: Axlsx::SheetCalcPr

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

Overview

the SheetCalcPr object for the worksheet This object contains calculation properties for the worksheet.

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 = {}) ⇒ SheetCalcPr

creates a new SheetCalcPr

Parameters:

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

    Options for this object

  • [Boolean] (Hash)

    a customizable set of options



13
14
15
16
# File 'lib/axlsx/workbook/worksheet/sheet_calc_pr.rb', line 13

def initialize(options = {})
  @full_calc_on_load = true
  parse_options options
end

Instance Method Details

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

Serialize the object content to.

Parameters:

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

    the string to append this objects serialized

Returns:

  • (String)


26
27
28
29
30
# File 'lib/axlsx/workbook/worksheet/sheet_calc_pr.rb', line 26

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