Class: ActiveSupport::FileWatcher::Backend

Inherits:
Object
  • Object
show all
Defined in:
lib/active_support/file_watcher.rb

Instance Method Summary collapse

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