Class: Dependence::FileWatcher
- Inherits:
-
Object
- Object
- Dependence::FileWatcher
- Defined in:
- lib/dependence/file_watcher.rb
Constant Summary collapse
- @@defaults =
{ :load_path => ".", :glob_str => "**/*" }
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.
7 8 9 10 11 |
# File 'lib/dependence/file_watcher.rb', line 7 def initialize(opts, &block) @options = @@defaults.merge(opts) poll(&block) end |