Class: StringCell

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, sst_index) ⇒ StringCell

Returns a new instance of StringCell.



20
21
22
23
24
25
# File 'lib/surpass/surpass_cell.rb', line 20

def initialize(parent, index, format_index, sst_index)
  @parent = parent
  @index = index
  @format_index = format_index
  @sst_index = sst_index
end

Instance Method Details

#to_biffObject



27
28
29
# File 'lib/surpass/surpass_cell.rb', line 27

def to_biff
  LabelSSTRecord.new(@parent.index, @index, @format_index, @sst_index).to_biff
end