module Watch

Public Class Methods

watch(file, &fn) click to toggle source
# File lib/tasks/watch.rb, line 4
def self.watch(file, &fn)
  t = FileWatch::Watch.new
  t.watch(file)
  t.subscribe &fn
end