Class: Rspreadsheet::RowCells
- Inherits:
-
Object
- Object
- Rspreadsheet::RowCells
- Defined in:
- lib/rspreadsheet/row.rb
Overview
this allows the row.cells syntax this object is result of row.cells
Instance Method Summary collapse
- #[](coli) ⇒ Object
-
#initialize(workbook, rowi) ⇒ RowCells
constructor
A new instance of RowCells.
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 |