Class: LiveF1::Source::Live::LogProxy
- Inherits:
-
Object
- Object
- LiveF1::Source::Live::LogProxy
- Defined in:
- lib/live_f1/source/live.rb
Overview
Wraps a logfile in methods which mean the caller doesn’t need to know if a log is currently open or not
Class Method Summary collapse
-
.flush ⇒ Object
Writes the current logfile to disk.
-
.reset ⇒ Object
Writes the current logfile to disk and then closes the log.
- .start(session_number) ⇒ Object
Class Method Details
.flush ⇒ Object
Writes the current logfile to disk
116 117 118 |
# File 'lib/live_f1/source/live.rb', line 116 def flush @log.flush if @log end |
.reset ⇒ Object
Writes the current logfile to disk and then closes the log
121 122 123 124 |
# File 'lib/live_f1/source/live.rb', line 121 def reset flush @log = nil end |