Class: FileWatcher

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

Constant Summary collapse

@@defaults =
{
  :load_path => ".",
  :glob_str  => "**/*.js"
}

Instance Method Summary collapse

Constructor Details

#initialize(opts, &block) ⇒ FileWatcher

Returns a new instance of FileWatcher.



6
7
8
9
10
# File 'lib/dependence/file_watcher.rb', line 6

def initialize(opts, &block)
  @options = @@defaults.merge(opts)
  recreate_timetable
  poll(&block)
end