Module: Bobkit::Watcher
- Defined in:
- lib/bobkit/watcher.rb
Instance Method Summary collapse
Instance Method Details
#filewatcher ⇒ Object
10 11 12 |
# File 'lib/bobkit/watcher.rb', line 10 def filewatcher FileWatcher.new(paths) end |
#watch(paths = nil, &block) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/bobkit/watcher.rb', line 3 def watch(paths=nil, &block) # :nocov: @paths = paths filewatcher.watch &block # :nocov: end |