Class: ActiveSupport::FileWatcher::Backend
- Defined in:
- lib/active_support/file_watcher.rb
Instance Method Summary collapse
-
#initialize(path, watcher) ⇒ Backend
constructor
A new instance of Backend.
- #trigger(files) ⇒ Object
Constructor Details
#initialize(path, watcher) ⇒ Backend
Returns a new instance of Backend.
4 5 6 7 |
# File 'lib/active_support/file_watcher.rb', line 4 def initialize(path, watcher) @watcher = watcher @path = path end |
Instance Method Details
#trigger(files) ⇒ Object
9 10 11 |
# File 'lib/active_support/file_watcher.rb', line 9 def trigger(files) @watcher.trigger(files) end |