Class: FileWatcher
- Inherits:
-
Object
- Object
- FileWatcher
- Defined in:
- lib/dependence/file_watcher.rb
Instance Method Summary collapse
-
#initialize(glob_str, &block) ⇒ FileWatcher
constructor
A new instance of FileWatcher.
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 poll(&block) end |