Class Sinatra::Reloader::Watcher::List
In: lib/sinatra/reloader.rb
Parent: Object

Collection of file Watcher that can be associated with a Sinatra application. That way, we can know which files belong to a given application and which files have been modified. It also provides a mechanism to inform a Watcher of the elements defined in the file being watched and if its changes should be ignored.

Methods

for   ignore   new   updated   watch   watch_file   watcher_for   watchers  

Public Class methods

Returns the List for the application app.

Creates a new List instance.

Public Instance methods

Tells the Watcher for the file located at path to ignore the file changes, and adds the Watcher to the List, if it isn‘t already there.

Returns an array with all the watchers in the List that have been updated.

Lets the Watcher for the file located at path know that the element is defined there, and adds the Watcher to the List, if it isn‘t already there.

watch_file(path)

Adds a Watcher for the file located at path to the List, if it isn‘t already there.

Returns an array with all the watchers in the List.

[Validate]