Module: RunningTrack
- Defined in:
- lib/running_track.rb,
lib/running_track/data.rb,
lib/running_track/table.rb
Defined Under Namespace
Modules: Data
Classes: Table
Class Method Summary
collapse
Class Method Details
.clear_cache ⇒ Object
22
23
24
|
# File 'lib/running_track.rb', line 22
def self.clear_cache
@cache = {}
end
|
.get_cache ⇒ Object
18
19
20
|
# File 'lib/running_track.rb', line 18
def self.get_cache
@cache
end
|
.print ⇒ Object
12
13
14
15
16
|
# File 'lib/running_track.rb', line 12
def self.print
Table.new(Data.import).print
@cache[:table] ||= get_table
@cache[:table].print
end
|