Class: Sinatra::Reloader::Watcher::Element
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/sinatra-contrib-3.0.5/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.
Method Summary
Methods inherited from Struct
Instance Attribute Details
#representation ⇒ Object
Returns the value of attribute representation
115 116 117 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/sinatra-contrib-3.0.5/lib/sinatra/reloader.rb', line 115 def representation @representation end |
#type ⇒ Object
Returns the value of attribute type
115 116 117 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/sinatra-contrib-3.0.5/lib/sinatra/reloader.rb', line 115 def type @type end |