Class: TableTennis::Row
- Inherits:
-
Array
- Object
- Array
- TableTennis::Row
- Defined in:
- lib/table_tennis/row.rb
Overview
We use this to store each row of data in the table. Row is an array, but with ‘r` too.
Instance Attribute Summary collapse
-
#r ⇒ Object
readonly
r is the index of this row.
Instance Method Summary collapse
-
#initialize(r, values) ⇒ Row
constructor
A new instance of Row.
Constructor Details
#initialize(r, values) ⇒ Row
Returns a new instance of Row.
6 7 8 9 |
# File 'lib/table_tennis/row.rb', line 6 def initialize(r, values) super(values) @r = r end |
Instance Attribute Details
#r ⇒ Object (readonly)
r is the index of this row
5 6 7 |
# File 'lib/table_tennis/row.rb', line 5 def r @r end |