method
new
v7.2.3 -
Show latest stable
- Class:
ActionView::CacheExpiry::ViewReloader
new(watcher:, &block)public
No documentation available.
# File actionview/lib/action_view/cache_expiry.rb, line 6
def initialize(watcher,, &block)
@mutex = Mutex.new
@watcher_class = watcher
@watched_dirs = nil
@watcher = nil
@previous_change = false
ActionView::PathRegistry.file_system_resolver_hooks << method(:rebuild_watcher)
end