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

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#representationObject

Returns the value of attribute representation

Returns:

  • (Object)

    the current value of representation


106
107
108
# File 'lib/sinatra/reloader.rb', line 106

def representation
  @representation
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type


106
107
108
# File 'lib/sinatra/reloader.rb', line 106

def type
  @type
end