Class: Rrxcell::Row
- Inherits:
-
Object
- Object
- Rrxcell::Row
- Defined in:
- lib/rrxcell/row.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
-
#sheet ⇒ Object
readonly
Returns the value of attribute sheet.
Instance Method Summary collapse
- #[](position) ⇒ Object
- #book ⇒ Object
- #column(position) ⇒ Object
-
#initialize(sheet, position) ⇒ Row
constructor
A new instance of Row.
Constructor Details
#initialize(sheet, position) ⇒ Row
Returns a new instance of Row.
4 5 6 7 8 |
# File 'lib/rrxcell/row.rb', line 4 def initialize(sheet, position) super() @sheet = sheet @position = position end |
Instance Attribute Details
#object ⇒ Object (readonly)
Returns the value of attribute object.
2 3 4 |
# File 'lib/rrxcell/row.rb', line 2 def object @object end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
2 3 4 |
# File 'lib/rrxcell/row.rb', line 2 def position @position end |
#sheet ⇒ Object (readonly)
Returns the value of attribute sheet.
2 3 4 |
# File 'lib/rrxcell/row.rb', line 2 def sheet @sheet end |
Instance Method Details
#[](position) ⇒ Object
10 11 12 |
# File 'lib/rrxcell/row.rb', line 10 def [](position) column(position) end |
#book ⇒ Object
14 15 16 |
# File 'lib/rrxcell/row.rb', line 14 def book sheet.book end |
#column(position) ⇒ Object
18 19 20 |
# File 'lib/rrxcell/row.rb', line 18 def column(position) raise ShouldBeImplementedError end |