Class: MulBlankCell

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, col1, col2, xf_idx) ⇒ MulBlankCell

Returns a new instance of MulBlankCell.



111
112
113
114
115
116
117
# File 'lib/surpass/surpass_cell.rb', line 111

def initialize(parent, col1, col2, xf_idx)
  raise unless col1 < col2
  @parent = parent
  @col1 = col1
  @col2 = col2
  @xf_idx = xf_idx
end

Instance Method Details

#to_biffObject



119
120
121
# File 'lib/surpass/surpass_cell.rb', line 119

def to_biff
  MulBlankRecord.new(@parent.index, @col1, @col2, @xf_idx).to_biff
end