Module: Rack::Putty::Router
- Defined in:
- lib/rack-putty/router/extract_params.rb,
lib/rack-putty/router.rb
Defined Under Namespace
Modules: ClassMethods
Classes: ExtractParams
Constant Summary
collapse
- MissingStackBaseError =
Class.new(StandardError)
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.included(base) ⇒ Object
30
31
32
33
|
# File 'lib/rack-putty/router.rb', line 30
def self.included(base)
base.extend(ClassMethods)
base.routes.rehash
end
|
Instance Method Details
#call(env) ⇒ Object
35
36
37
|
# File 'lib/rack-putty/router.rb', line 35
def call(env)
self.class.routes.call(env)
end
|