Class: DeprecationCollector::Web::Application

Inherits:
Object
  • Object
show all
Extended by:
Router
Defined in:
lib/deprecation_collector/web/application.rb

Overview

:nodoc:

Constant Summary

Constants included from Router

Router::HTTP_METHODS, Router::PATH_INFO, Router::ROUTE_PARAMS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Router

helpers, match, root, route

Constructor Details

#initialize(web) ⇒ Application

Returns a new instance of Application.



15
16
17
18
19
# File 'lib/deprecation_collector/web/application.rb', line 15

def initialize(web)
  @web = web
  # used for escaping in compiled slim templates
  require_relative "utils" unless defined?(Temple::Utils) || ENV["DEPRECATION_COLLECTOR_RELOAD_WEB_TEMPLATES"]
end

Instance Attribute Details

#webObject (readonly)

Returns the value of attribute web.



13
14
15
# File 'lib/deprecation_collector/web/application.rb', line 13

def web
  @web
end

Instance Method Details

#call(env) ⇒ Object



21
22
23
# File 'lib/deprecation_collector/web/application.rb', line 21

def call(env)
  self.class.call(env, self)
end