Class: RackDispatch::Application
- Inherits:
-
Object
- Object
- RackDispatch::Application
- Defined in:
- lib/rack_dispatch/application.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.default(options = {}) ⇒ Object
10 11 12 |
# File 'lib/rack_dispatch/application.rb', line 10 def default( = {}) @default_handler = handler() end |
Instance Method Details
#call(env) ⇒ Object
15 16 17 |
# File 'lib/rack_dispatch/application.rb', line 15 def call(env) route(Rack::Request.new(env)) end |