Sha256: f75441f0f0cb995fc22738f0cbb5e84142852fd4a1def2688447aaaefd5d737a

Contents?: true

Size: 893 Bytes

Versions: 6

Compression:

Stored size: 893 Bytes

Contents

# frozen_string_literal: true

module Axlsx
  # the SheetCalcPr object for the worksheet
  # This object contains calculation properties for the worksheet.
  class SheetCalcPr
    include Axlsx::OptionsParser
    include Axlsx::SerializedAttributes
    include Axlsx::Accessors
    # creates a new SheetCalcPr
    # @param [Hash] options Options for this object
    # @option [Boolean] full_calc_on_load @see full_calc_on_load
    def initialize(options = {})
      @full_calc_on_load = true
      parse_options options
    end

    boolean_attr_accessor :full_calc_on_load

    serializable_attributes :full_calc_on_load

    # Serialize the object
    # @param [String] str the string to append this objects serialized
    # content to.
    # @return [String]
    def to_xml_string(str = +'')
      str << '<sheetCalcPr '
      serialized_attributes(str)
      str << '/>'
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
caxlsx-4.2.0 lib/axlsx/workbook/worksheet/sheet_calc_pr.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/caxlsx-4.1.0/lib/axlsx/workbook/worksheet/sheet_calc_pr.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/caxlsx-4.1.0/lib/axlsx/workbook/worksheet/sheet_calc_pr.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/caxlsx-4.1.0/lib/axlsx/workbook/worksheet/sheet_calc_pr.rb
caxlsx-4.1.0 lib/axlsx/workbook/worksheet/sheet_calc_pr.rb
caxlsx-4.0.0 lib/axlsx/workbook/worksheet/sheet_calc_pr.rb