Class: FormulaCell
- Inherits:
-
SurpassCell
- Object
- SurpassCell
- FormulaCell
- Defined in:
- lib/surpass/surpass_cell.rb
Instance Attribute Summary
Attributes inherited from SurpassCell
Instance Method Summary collapse
-
#initialize(parent, index, format_index, formula, calc_flags = 0) ⇒ FormulaCell
constructor
A new instance of FormulaCell.
- #to_biff ⇒ Object
Methods inherited from SurpassCell
Constructor Details
#initialize(parent, index, format_index, formula, calc_flags = 0) ⇒ FormulaCell
Returns a new instance of FormulaCell.
126 127 128 129 130 131 132 |
# File 'lib/surpass/surpass_cell.rb', line 126 def initialize(parent, index, format_index, formula, calc_flags = 0) @parent = parent @index = index @format_index = format_index @formula = formula @calc_flags = calc_flags end |
Instance Method Details
#to_biff ⇒ Object
134 135 136 137 |
# File 'lib/surpass/surpass_cell.rb', line 134 def to_biff args = [@parent.index, @index, @format_index, @formula.to_biff, @calc_flags] FormulaRecord.new(*args).to_biff end |