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

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



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

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)


25
26
27
# File 'lib/axlsx/workbook/worksheet/sheet_calc_pr.rb', line 25

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