Class: Xlsxrb::Elements::Formula
- Inherits:
-
Data
- Object
- Data
- Xlsxrb::Elements::Formula
- 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
-
#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.
Class Method Summary collapse
- .members ⇒ [ :expression, :cached_value, :type, :ref, :shared_index, :calculate_always, :aca, :bx, :dt2d, :dtr, :r1, :r2 ]
- .new ⇒ Object
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.
- #members ⇒ [ :expression, :cached_value, :type, :ref, :shared_index, :calculate_always, :aca, :bx, :dt2d, :dtr, :r1, :r2 ]
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
#aca ⇒ Object (readonly)
Returns the value of attribute aca
13 14 15 |
# File 'lib/xlsxrb/elements/types.rb', line 13 def aca @aca end |
#bx ⇒ Object (readonly)
Returns the value of attribute bx
13 14 15 |
# File 'lib/xlsxrb/elements/types.rb', line 13 def bx @bx end |
#cached_value ⇒ Object (readonly)
Returns the value of attribute cached_value
13 14 15 |
# File 'lib/xlsxrb/elements/types.rb', line 13 def cached_value @cached_value end |
#calculate_always ⇒ Object (readonly)
Returns the value of attribute calculate_always
13 14 15 |
# File 'lib/xlsxrb/elements/types.rb', line 13 def calculate_always @calculate_always end |
#dt2d ⇒ Object (readonly)
Returns the value of attribute dt2d
13 14 15 |
# File 'lib/xlsxrb/elements/types.rb', line 13 def dt2d @dt2d end |
#dtr ⇒ Object (readonly)
Returns the value of attribute dtr
13 14 15 |
# File 'lib/xlsxrb/elements/types.rb', line 13 def dtr @dtr end |
#expression ⇒ Object (readonly)
Returns the value of attribute expression
13 14 15 |
# File 'lib/xlsxrb/elements/types.rb', line 13 def expression @expression end |
#r1 ⇒ Object (readonly)
Returns the value of attribute r1
13 14 15 |
# File 'lib/xlsxrb/elements/types.rb', line 13 def r1 @r1 end |
#r2 ⇒ Object (readonly)
Returns the value of attribute r2
13 14 15 |
# File 'lib/xlsxrb/elements/types.rb', line 13 def r2 @r2 end |
#ref ⇒ Object (readonly)
Returns the value of attribute ref
13 14 15 |
# File 'lib/xlsxrb/elements/types.rb', line 13 def ref @ref end |
#shared_index ⇒ Object (readonly)
Returns the value of attribute shared_index
13 14 15 |
# File 'lib/xlsxrb/elements/types.rb', line 13 def shared_index @shared_index end |
#type ⇒ Object (readonly)
Returns the value of attribute 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 ]
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
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 ]
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 ]
|