Class: RSpecLive::Monitor
- Inherits:
-
Object
- Object
- RSpecLive::Monitor
- Defined in:
- lib/rspec-live/monitor.rb
Instance Method Summary collapse
-
#initialize(suite, display, detail) ⇒ Monitor
constructor
A new instance of Monitor.
- #start ⇒ Object
Constructor Details
#initialize(suite, display, detail) ⇒ Monitor
Returns a new instance of Monitor.
7 8 9 10 11 12 |
# File 'lib/rspec-live/monitor.rb', line 7 def initialize(suite, display, detail) @suite = suite @display = display @detail = detail @quit = false end |
Instance Method Details
#start ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/rspec-live/monitor.rb', line 14 def start @display.update while !@quit do @display.update if process_updates || @display.update_required? sleep 0.05 end rescue Interrupt end |