Class: Gazr::EventHandler::Darwin
- Inherits:
-
FSEvent
- Object
- FSEvent
- Gazr::EventHandler::Darwin
- Includes:
- Base
- Defined in:
- lib/gazr/event_handlers/darwin.rb
Instance Method Summary collapse
-
#initialize ⇒ Darwin
constructor
A new instance of Darwin.
- #listen(monitored_paths) ⇒ Object
- #refresh(monitored_paths) ⇒ Object
Methods included from Base
Constructor Details
#initialize ⇒ Darwin
Returns a new instance of Darwin.
13 14 15 16 |
# File 'lib/gazr/event_handlers/darwin.rb', line 13 def initialize super self.latency = 0.2 end |
Instance Method Details
#listen(monitored_paths) ⇒ Object
18 19 20 21 |
# File 'lib/gazr/event_handlers/darwin.rb', line 18 def listen(monitored_paths) register_paths(monitored_paths) start end |
#refresh(monitored_paths) ⇒ Object
23 24 25 26 |
# File 'lib/gazr/event_handlers/darwin.rb', line 23 def refresh(monitored_paths) register_paths(monitored_paths) restart end |