Class Sinatra::Reloader::Watcher::Element
In: lib/sinatra/reloader.rb
Parent: Struct.new(:type, :representation)

Represents an element of a Sinatra application that may need to be reloaded. An element could be:

  • a route
  • a filter
  • an error handler
  • a middleware
  • inline templates

Its representation attribute is there to allow to identify the element within an application, that is, to match it with its Sinatra‘s internal representation.

[Validate]