Class: BooleanCell
Instance Attribute Summary
Attributes inherited from Cell
Instance Method Summary collapse
-
#initialize(parent, index, format_index, number) ⇒ BooleanCell
constructor
A new instance of BooleanCell.
- #to_biff ⇒ Object
Methods inherited from Cell
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/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/cell.rb', line 150 def to_biff number = @number ? 1 : 0 BoolErrRecord.new(@parent.index, @index, @format_index, number, @is_error).to_biff end |