Object
Watches a file so it can tell when it has been updated, and what elements does it contain.
Informs that the modifications to the file being watched should be ignored.
# File lib/sinatra/reloader.rb, line 189 def ignore @ignore = true end
Indicates whether or not the modifications to the file being watched should be ignored.
# File lib/sinatra/reloader.rb, line 195 def ignore? !!@ignore end
Indicates whether or not the file being watched has inline templates.
# File lib/sinatra/reloader.rb, line 183 def inline_templates? elements.any? { |element| element.type == :inline_templates } end
Indicates whether or not the file being watched has been removed.
# File lib/sinatra/reloader.rb, line 200 def removed? !File.exist?(path) end
Generated with the Darkfish Rdoc Generator 2.