Module: Watch

Included in:
App
Defined in:
lib/tasks/watch.rb

Class Method Summary collapse

Class Method Details

.watch(file, &fn) ⇒ Object



4
5
6
7
8
# File 'lib/tasks/watch.rb', line 4

def self.watch(file, &fn)
  t = FileWatch::Watch.new
  t.watch(file)
  t.subscribe &fn
end