Class: FileWatcher
- Inherits:
-
Object
- Object
- FileWatcher
- Defined in:
- lib/dependence/file_watcher.rb
Constant Summary collapse
- @@defaults =
{ :load_path => ".", :glob_str => "**/*.js" }
Instance Method Summary collapse
-
#initialize(opts, &block) ⇒ FileWatcher
constructor
A new instance of FileWatcher.
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) poll(&block) end |