method
watching?
rails latest stable - Class:
ActiveSupport::EventedFileUpdateChecker::Core
watching?(file)public
No documentation available.
# File activesupport/lib/active_support/evented_file_update_checker.rb, line 150
def watching?(file)
file = Pathname(file)
if @files.member?(file)
true
elsif file.directory?
false
else
ext = file.extname
file.dirname.ascend do |dir|
matching = @dirs[dir]
if matching && (matching.empty? || matching.include?(ext))
break true
elsif dir == @common_path || dir.root?
break false
end
end
end
end