Class: BooleanCell

Inherits:
SurpassCell show all
Defined in:
lib/surpass/surpass_cell.rb

Instance Attribute Summary

Attributes inherited from SurpassCell

#index

Instance Method Summary collapse

Methods inherited from SurpassCell

#col, #row, #set_style

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_biffObject



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