Class | INotify::Watcher |
In: |
lib/vendor/linux/lib/rb-inotify/watcher.rb
|
Parent: | Object |
Watchers monitor a single path for changes, specified by {INotify::Notifier#watch event flags}. A watcher is usually created via \{Notifier#watch}.
One {Notifier} may have many {Watcher}s. The Notifier actually takes care of the checking for events, via \{Notifier#run run} or \{Notifier#process process}. The main purpose of having Watcher objects is to be able to disable them using \{close}.
flags | [R] |
The {INotify::Notifier#watch flags}
specifying the events that this Watcher is
watching for, and potentially some options as well.
@return [Array<Symbol>] |
id | [R] |
The id for this Watcher. Used to retrieve this
Watcher from {Notifier#watchers}.
@private @return [Fixnum] |
notifier | [R] |
The {Notifier} that this Watcher belongs to.
@return [Notifier] |
path | [R] |
The path that this Watcher is watching.
@return [String] |