Class: Sinatra::Reloader::Watcher::Element
- Inherits:
-
Struct
- Object
- Struct
- Sinatra::Reloader::Watcher::Element
- Defined in:
- lib/sinatra/reloader.rb
Overview
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.
Instance Attribute Summary collapse
-
#representation ⇒ Object
Returns the value of attribute representation.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Attribute Details
#representation ⇒ Object
Returns the value of attribute representation
115 116 117 |
# File 'lib/sinatra/reloader.rb', line 115 def representation @representation end |
#type ⇒ Object
Returns the value of attribute type
115 116 117 |
# File 'lib/sinatra/reloader.rb', line 115 def type @type end |