Class: Merb::Dispatcher

Inherits:
Object show all
Extended by:
ControllerExceptions
Defined in:
lib/merb-core/dispatch/dispatcher.rb,
lib/merb-core/dispatch/default_exception/default_exception.rb

Defined Under Namespace

Modules: DefaultExceptionHelper Classes: DefaultException

Constant Summary collapse

@@work_queue =
Queue.new

Constants included from ControllerExceptions

ControllerExceptions::STATUS_CODES

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.use_mutexObject

Returns the value of attribute use_mutex.



8
9
10
# File 'lib/merb-core/dispatch/dispatcher.rb', line 8

def use_mutex
  @use_mutex
end

Class Method Details

.handle(request) ⇒ Object

Dispatch the rack environment. ControllerExceptions are rescued here and redispatched.

Parameters

rack_env<Rack::Environment>

The rack environment, which is used to instantiate a Merb::Request

Returns

Merb::Controller

The Merb::Controller that was dispatched to



28
29
30
# File 'lib/merb-core/dispatch/dispatcher.rb', line 28

def handle(request)
  request.handle
end

.work_queueObject



12
13
14
# File 'lib/merb-core/dispatch/dispatcher.rb', line 12

def work_queue 
  @@work_queue
end