Class: BooleanCell
- Inherits:
-
SurpassCell
- Object
- SurpassCell
- BooleanCell
- Defined in:
- lib/surpass/surpass_cell.rb
Instance Attribute Summary
Attributes inherited from SurpassCell
Instance Method Summary collapse
-
#initialize(parent, index, format_index, number) ⇒ BooleanCell
constructor
A new instance of BooleanCell.
- #to_biff ⇒ Object
Methods inherited from SurpassCell
Constructor Details
#initialize(parent, index, format_index, number) ⇒ BooleanCell
Returns a new instance of BooleanCell.
142 143 144 145 146 147 148 |
# File 'lib/surpass/surpass_cell.rb', line 142 def initialize(parent, index, format_index, number) @parent = parent @index = index @format_index = format_index @number = number @is_error = 0 end |
Instance Method Details
#to_biff ⇒ Object
150 151 152 153 |
# File 'lib/surpass/surpass_cell.rb', line 150 def to_biff number = @number ? 1 : 0 BoolErrRecord.new(@parent.index, @index, @format_index, number, @is_error).to_biff end |