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

Watches a file so it can tell when it has been updated, and what elements does it contain.

Methods

Classes and Modules

Class Sinatra::Reloader::Watcher::Element
Class Sinatra::Reloader::Watcher::List

Attributes

elements  [R] 
mtime  [R] 
path  [R] 

Public Class methods

Creates a new Watcher instance for the file located at path.

Public Instance methods

Informs that the modifications to the file being watched should be ignored.

Indicates whether or not the modifications to the file being watched should be ignored.

Indicates whether or not the file being watched has inline templates.

Indicates whether or not the file being watched has been removed.

Updates the mtime of the file being watched.

Indicates whether or not the file being watched has been modified.

[Validate]