Class: Xlsxrb::Elements::Formula

Inherits:
Data
  • Object
show all
Defined in:
lib/xlsxrb/elements/types.rb,
sig/generated/xlsxrb/elements/types.rbs

Overview

Represents a formula with an optional cached value. Optional: type (:shared, :array), ref (range), shared_index (si for shared formulas)

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expression:, cached_value: nil, type: nil, ref: nil, shared_index: nil, calculate_always: nil, aca: nil, bx: nil, dt2d: nil, dtr: nil, r1: nil, r2: nil) ⇒ Formula

rubocop:disable Naming/MethodParameterName



14
15
16
# File 'lib/xlsxrb/elements/types.rb', line 14

def initialize(expression:, cached_value: nil, type: nil, ref: nil, shared_index: nil, calculate_always: nil, aca: nil, bx: nil, dt2d: nil, dtr: nil, r1: nil, r2: nil) # rubocop:disable Naming/MethodParameterName
  super
end

Instance Attribute Details

#acaObject (readonly)

Returns the value of attribute aca

Returns:

  • (Object)

    the current value of aca



13
14
15
# File 'lib/xlsxrb/elements/types.rb', line 13

def aca
  @aca
end

#bxObject (readonly)

Returns the value of attribute bx

Returns:

  • (Object)

    the current value of bx



13
14
15
# File 'lib/xlsxrb/elements/types.rb', line 13

def bx
  @bx
end

#cached_valueObject (readonly)

Returns the value of attribute cached_value

Returns:

  • (Object)

    the current value of cached_value



13
14
15
# File 'lib/xlsxrb/elements/types.rb', line 13

def cached_value
  @cached_value
end

#calculate_alwaysObject (readonly)

Returns the value of attribute calculate_always

Returns:

  • (Object)

    the current value of calculate_always



13
14
15
# File 'lib/xlsxrb/elements/types.rb', line 13

def calculate_always
  @calculate_always
end

#dt2dObject (readonly)

Returns the value of attribute dt2d

Returns:

  • (Object)

    the current value of dt2d



13
14
15
# File 'lib/xlsxrb/elements/types.rb', line 13

def dt2d
  @dt2d
end

#dtrObject (readonly)

Returns the value of attribute dtr

Returns:

  • (Object)

    the current value of dtr



13
14
15
# File 'lib/xlsxrb/elements/types.rb', line 13

def dtr
  @dtr
end

#expressionObject (readonly)

Returns the value of attribute expression

Returns:

  • (Object)

    the current value of expression



13
14
15
# File 'lib/xlsxrb/elements/types.rb', line 13

def expression
  @expression
end

#r1Object (readonly)

Returns the value of attribute r1

Returns:

  • (Object)

    the current value of r1



13
14
15
# File 'lib/xlsxrb/elements/types.rb', line 13

def r1
  @r1
end

#r2Object (readonly)

Returns the value of attribute r2

Returns:

  • (Object)

    the current value of r2



13
14
15
# File 'lib/xlsxrb/elements/types.rb', line 13

def r2
  @r2
end

#refObject (readonly)

Returns the value of attribute ref

Returns:

  • (Object)

    the current value of ref



13
14
15
# File 'lib/xlsxrb/elements/types.rb', line 13

def ref
  @ref
end

#shared_indexObject (readonly)

Returns the value of attribute shared_index

Returns:

  • (Object)

    the current value of shared_index



13
14
15
# File 'lib/xlsxrb/elements/types.rb', line 13

def shared_index
  @shared_index
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



13
14
15
# File 'lib/xlsxrb/elements/types.rb', line 13

def type
  @type
end

Class Method Details

.members[ :expression, :cached_value, :type, :ref, :shared_index, :calculate_always, :aca, :bx, :dt2d, :dtr, :r1, :r2 ]

Returns:

  • ([ :expression, :cached_value, :type, :ref, :shared_index, :calculate_always, :aca, :bx, :dt2d, :dtr, :r1, :r2 ])


41
# File 'sig/generated/xlsxrb/elements/types.rbs', line 41

def self.members: () -> [ :expression, :cached_value, :type, :ref, :shared_index, :calculate_always, :aca, :bx, :dt2d, :dtr, :r1, :r2 ]

.new(expression, cached_value, type, ref, shared_index, calculate_always, aca, bx, dt2d, dtr, r1, r2) ⇒ instance .new(expression:, cached_value:, type:, ref:, shared_index:, calculate_always:, aca:, bx:, dt2d:, dtr:, r1:, r2:) ⇒ instance

Overloads:

  • .new(expression, cached_value, type, ref, shared_index, calculate_always, aca, bx, dt2d, dtr, r1, r2) ⇒ instance

    Parameters:

    • expression (Object)
    • cached_value (Object)
    • type (Object)
    • ref (Object)
    • shared_index (Object)
    • calculate_always (Object)
    • aca (Object)
    • bx (Object)
    • dt2d (Object)
    • dtr (Object)
    • r1 (Object)
    • r2 (Object)

    Returns:

    • (instance)
  • .new(expression:, cached_value:, type:, ref:, shared_index:, calculate_always:, aca:, bx:, dt2d:, dtr:, r1:, r2:) ⇒ instance

    Parameters:

    • expression: (Object)
    • cached_value: (Object)
    • type: (Object)
    • ref: (Object)
    • shared_index: (Object)
    • calculate_always: (Object)
    • aca: (Object)
    • bx: (Object)
    • dt2d: (Object)
    • dtr: (Object)
    • r1: (Object)
    • r2: (Object)

    Returns:

    • (instance)


38
39
# File 'sig/generated/xlsxrb/elements/types.rbs', line 38

def self.new: (untyped expression, untyped cached_value, untyped type, untyped ref, untyped shared_index, untyped calculate_always, untyped aca, untyped bx, untyped dt2d, untyped dtr, untyped r1, untyped r2) -> instance
| (expression: untyped, cached_value: untyped, type: untyped, ref: untyped, shared_index: untyped, calculate_always: untyped, aca: untyped, bx: untyped, dt2d: untyped, dtr: untyped, r1: untyped, r2: untyped) -> instance

Instance Method Details

#members[ :expression, :cached_value, :type, :ref, :shared_index, :calculate_always, :aca, :bx, :dt2d, :dtr, :r1, :r2 ]

Returns:

  • ([ :expression, :cached_value, :type, :ref, :shared_index, :calculate_always, :aca, :bx, :dt2d, :dtr, :r1, :r2 ])


43
# File 'sig/generated/xlsxrb/elements/types.rbs', line 43

def members: () -> [ :expression, :cached_value, :type, :ref, :shared_index, :calculate_always, :aca, :bx, :dt2d, :dtr, :r1, :r2 ]