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.
137 138 139 140 141 142 143 |
# File 'lib/surpass/cell.rb', line 137 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
145 146 147 148 |
# File 'lib/surpass/cell.rb', line 145 def to_biff number = @number ? 1 : 0 BoolErrRecord.new(@parent.index, @index, @format_index, number, @is_error).to_biff end |