Class: RackDispatch::Application

Inherits:
Object
  • Object
show all
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(options = {})
  @default_handler = handler(options)
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