Class: Xlsxrb::Elements::Formula
- Inherits:
-
Data
- Object
- Data
- Xlsxrb::Elements::Formula
- Defined in:
- lib/xlsxrb/elements/types.rb
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
-
#aca ⇒ Object
readonly
Returns the value of attribute aca.
-
#bx ⇒ Object
readonly
Returns the value of attribute bx.
-
#cached_value ⇒ Object
readonly
Returns the value of attribute cached_value.
-
#calculate_always ⇒ Object
readonly
Returns the value of attribute calculate_always.
-
#dt2d ⇒ Object
readonly
Returns the value of attribute dt2d.
-
#dtr ⇒ Object
readonly
Returns the value of attribute dtr.
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
-
#r1 ⇒ Object
readonly
Returns the value of attribute r1.
-
#r2 ⇒ Object
readonly
Returns the value of attribute r2.
-
#ref ⇒ Object
readonly
Returns the value of attribute ref.
-
#shared_index ⇒ Object
readonly
Returns the value of attribute shared_index.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#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
constructor
rubocop:disable Naming/MethodParameterName.
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
8 9 10 |
# File 'lib/xlsxrb/elements/types.rb', line 8 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
#aca ⇒ Object (readonly)
Returns the value of attribute aca
7 8 9 |
# File 'lib/xlsxrb/elements/types.rb', line 7 def aca @aca end |
#bx ⇒ Object (readonly)
Returns the value of attribute bx
7 8 9 |
# File 'lib/xlsxrb/elements/types.rb', line 7 def bx @bx end |
#cached_value ⇒ Object (readonly)
Returns the value of attribute cached_value
7 8 9 |
# File 'lib/xlsxrb/elements/types.rb', line 7 def cached_value @cached_value end |
#calculate_always ⇒ Object (readonly)
Returns the value of attribute calculate_always
7 8 9 |
# File 'lib/xlsxrb/elements/types.rb', line 7 def calculate_always @calculate_always end |
#dt2d ⇒ Object (readonly)
Returns the value of attribute dt2d
7 8 9 |
# File 'lib/xlsxrb/elements/types.rb', line 7 def dt2d @dt2d end |
#dtr ⇒ Object (readonly)
Returns the value of attribute dtr
7 8 9 |
# File 'lib/xlsxrb/elements/types.rb', line 7 def dtr @dtr end |
#expression ⇒ Object (readonly)
Returns the value of attribute expression
7 8 9 |
# File 'lib/xlsxrb/elements/types.rb', line 7 def expression @expression end |
#r1 ⇒ Object (readonly)
Returns the value of attribute r1
7 8 9 |
# File 'lib/xlsxrb/elements/types.rb', line 7 def r1 @r1 end |
#r2 ⇒ Object (readonly)
Returns the value of attribute r2
7 8 9 |
# File 'lib/xlsxrb/elements/types.rb', line 7 def r2 @r2 end |
#ref ⇒ Object (readonly)
Returns the value of attribute ref
7 8 9 |
# File 'lib/xlsxrb/elements/types.rb', line 7 def ref @ref end |
#shared_index ⇒ Object (readonly)
Returns the value of attribute shared_index
7 8 9 |
# File 'lib/xlsxrb/elements/types.rb', line 7 def shared_index @shared_index end |
#type ⇒ Object (readonly)
Returns the value of attribute type
7 8 9 |
# File 'lib/xlsxrb/elements/types.rb', line 7 def type @type end |