Class: Merb::Dispatcher
- 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
-
.use_mutex ⇒ Object
Returns the value of attribute use_mutex.
Class Method Summary collapse
-
.handle(request) ⇒ Object
private
Dispatch the rack environment.
-
.work_queue ⇒ Object
private
Returns Queue:: the current queue of dispatch jobs.
Class Attribute Details
.use_mutex ⇒ Object
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
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
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
34 35 36 |
# File 'lib/merb-core/dispatch/dispatcher.rb', line 34 def handle(request) request.handle end |
.work_queue ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns
- Queue
-
the current queue of dispatch jobs.
16 17 18 |
# File 'lib/merb-core/dispatch/dispatcher.rb', line 16 def work_queue @@work_queue end |