Class: BooleanCell

Inherits:
Cell
  • Object
show all
Defined in:
lib/surpass/cell.rb

Instance Attribute Summary

Attributes inherited from Cell

#index

Instance Method Summary collapse

Methods inherited from Cell

#col, #row, #set_style

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_biffObject



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