123456789_123456789_123456789_123456789_123456789_

Class: Sinatra::Reloader::Watcher::Element

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Struct
Instance Chain:
self, Struct
Inherits: Struct
  • Object
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

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.

[ GitHub ]

  
# File 'sinatra-contrib/lib/sinatra/reloader.rb', line 115

class Element < Struct.new(:type, :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.

[ GitHub ]

  
# File 'sinatra-contrib/lib/sinatra/reloader.rb', line 115

class Element < Struct.new(:type, :representation)