Class: Rack::App::Router::Tree::Vein
- Inherits:
-
Hash
- Object
- Hash
- Rack::App::Router::Tree::Vein
- Defined in:
- lib/rack/app/router/tree/vein.rb
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
11 12 13 14 |
# File 'lib/rack/app/router/tree/vein.rb', line 11 def call(env) app = app_by(env) app && app.call(env) end |
#set(env) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/rack/app/router/tree/vein.rb', line 4 def set(env) app = create_app(env) request_methods(env).each do |request_method| self[request_method.to_s.upcase] = app end end |