Class: Sinatra::Reloader::Watcher::Element
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Struct
|
|
Instance Chain:
self,
Struct
|
|
Inherits: |
Struct
|
Defined in: | sinatra-contrib/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
-
#representation
rw
Represents an element of a
::Sinatra
application that may need to be reloaded. -
#type
rw
Represents an element of a
::Sinatra
application that may need to be reloaded.
Instance Attribute Details
#representation (rw)
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.
#type (rw)
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.
# File 'sinatra-contrib/lib/sinatra/reloader.rb', line 115
class Element < Struct.new(:type, :representation)