class Guard::Windows
def watch(directory)
-
directory
(String
) -- the directory to watch
def watch(directory) worker.watch(directory, :all_events, :recursive) do |event| paths = [File.expand_path(event.watcher.path)] files = modified_files(paths, :all => true) @callback.call(files) unless files.empty? end end