Class: RailsDevelopmentBoost::Async::Reactor
- Inherits:
-
Object
- Object
- RailsDevelopmentBoost::Async::Reactor
- Defined in:
- lib/rails_development_boost/async.rb
Instance Method Summary collapse
-
#initialize ⇒ Reactor
constructor
A new instance of Reactor.
- #start! ⇒ Object
Constructor Details
#initialize ⇒ Reactor
Returns a new instance of Reactor.
64 65 66 |
# File 'lib/rails_development_boost/async.rb', line 64 def initialize @watcher = FSEvent.new end |
Instance Method Details
#start! ⇒ Object
68 69 70 |
# File 'lib/rails_development_boost/async.rb', line 68 def start! @thread = Thread.new { @watcher.run } end |