Class: FileWatcher

Inherits:
Object
  • Object
show all
Defined in:
lib/dependence/file_watcher.rb

Instance Method Summary collapse

Constructor Details

#initialize(glob_str, &block) ⇒ FileWatcher

Returns a new instance of FileWatcher.



2
3
4
5
6
# File 'lib/dependence/file_watcher.rb', line 2

def initialize(glob_str, &block)
  @dir = glob_str 
  recreate_timetable
  poll(&block)
end