Class: Gazr::EventHandler::Darwin

Inherits:
FSEvent
  • Object
show all
Includes:
Base
Defined in:
lib/gazr/event_handlers/darwin.rb

Instance Method Summary collapse

Methods included from Base

#notify

Constructor Details

#initializeDarwin

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