Object
Watches a file so it can tell when it has been updated, and what elements contains.
Informs that the modifications to the file being watched should be ignored.
# File lib/sinatra/reloader.rb, line 175 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 181 def ignore? !!@ignore end
Indicates whether or not the file being watched has inline templates.
# File lib/sinatra/reloader.rb, line 169 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 186 def removed? !File.exist?(path) end
Generated with the Darkfish Rdoc Generator 2.