Class: Rrxcell::Cell
- Inherits:
-
Object
show all
- Defined in:
- lib/rrxcell/cell.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(row, position) ⇒ Cell
Returns a new instance of Cell.
4
5
6
7
8
|
# File 'lib/rrxcell/cell.rb', line 4
def initialize(row, position)
super()
@row = row
@position = position
end
|
Instance Attribute Details
#position ⇒ Object
Returns the value of attribute position.
2
3
4
|
# File 'lib/rrxcell/cell.rb', line 2
def position
@position
end
|
#row ⇒ Object
Returns the value of attribute row.
2
3
4
|
# File 'lib/rrxcell/cell.rb', line 2
def row
@row
end
|
Instance Method Details
#book ⇒ Object
10
11
12
|
# File 'lib/rrxcell/cell.rb', line 10
def book
row.book
end
|
#sheet ⇒ Object
18
19
20
|
# File 'lib/rrxcell/cell.rb', line 18
def sheet
row.sheet
end
|