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