-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,17 @@ | ||
module Listener | ||
|
||
# Listen to file system modifications. | ||
# | ||
# @param [String, Pathname] dir the directory to watch | ||
# @param [Hash] options the listen options | ||
# @option options [String] glob the file filter pattern | ||
# @yield [modified, added, removed] the changed files | ||
# @yieldparam [Array<String>] modified the list of modified files | ||
# @yieldparam [Array<String>] added the list of added files | ||
# @yieldparam [Array<String>] removed the list of removed files | ||
# @return [Watcher] the file watcher | ||
# | ||
def self.listen(dir, options, &block) | ||
end | ||
|
||
end |