instance method
watch
Ruby on Rails 3.2.22.5
Since v3.1.12 Last seen in v4.1.16Signature
watch(pattern, &block)
No documentation comment.
Parameters
-
patternreq -
blockblock
Source
# File activesupport/lib/active_support/file_watcher.rb, line 18
def watch(pattern, &block)
@regex_matchers[pattern] = block
end
Defined in activesupport/lib/active_support/file_watcher.rb line 18
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::FileWatcher