Class: Rspreadsheet::RowCells

Inherits:
Object
  • Object
show all
Defined in:
lib/rspreadsheet/row.rb

Overview

this allows the row.cells syntax this object is result of row.cells

Instance Method Summary collapse

Constructor Details

#initialize(workbook, rowi) ⇒ RowCells

Returns a new instance of RowCells.



21
22
23
24
# File 'lib/rspreadsheet/row.rb', line 21

def initialize(workbook,rowi)
  @rowi = rowi
  @workbook = workbook
end

Instance Method Details

#[](coli) ⇒ Object



25
26
27
# File 'lib/rspreadsheet/row.rb', line 25

def [] coli
  @workbook.cells[@rowi,coli]
end