Class: RunningTrack::Table
- Inherits:
-
Object
- Object
- RunningTrack::Table
- Defined in:
- lib/running_track/table.rb
Constant Summary collapse
- SPLITTER =
';'
Instance Method Summary collapse
-
#initialize(data) ⇒ Table
constructor
A new instance of Table.
- #print ⇒ Object
Constructor Details
#initialize(data) ⇒ Table
Returns a new instance of Table.
8 9 10 11 |
# File 'lib/running_track/table.rb', line 8 def initialize data puts "[RunningTrack::Table]: Create running track table" @rows = prepare data end |
Instance Method Details
#print ⇒ Object
13 14 15 16 |
# File 'lib/running_track/table.rb', line 13 def print @table ||= create_table puts @table end |