Class: Rrxcell::Cell
- Inherits:
-
Object
- Object
- Rrxcell::Cell
- Defined in:
- lib/rrxcell/cell.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#position ⇒ Object
readonly
Returns the value of attribute position.
-
#row ⇒ Object
readonly
Returns the value of attribute row.
Instance Method Summary collapse
- #book ⇒ Object
-
#initialize(row, position) ⇒ Cell
constructor
A new instance of Cell.
- #object ⇒ Object
- #sheet ⇒ Object
- #value ⇒ Object
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 (readonly)
Returns the value of attribute position.
2 3 4 |
# File 'lib/rrxcell/cell.rb', line 2 def position @position end |
#row ⇒ Object (readonly)
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 |
#object ⇒ Object
14 15 16 |
# File 'lib/rrxcell/cell.rb', line 14 def object raise ShouldBeImplementedError end |
#sheet ⇒ Object
18 19 20 |
# File 'lib/rrxcell/cell.rb', line 18 def sheet row.sheet end |
#value ⇒ Object
22 23 24 |
# File 'lib/rrxcell/cell.rb', line 22 def value raise ShouldBeImplementedError end |