Class: Merb::Dispatcher
- Extended by:
- ControllerExceptions
- Defined in:
- lib/merb-core/dispatch/dispatcher.rb
Constant Summary collapse
- @@work_queue =
Queue.new
Constants included from ControllerExceptions
ControllerExceptions::STATUS_CODES
Class Attribute Summary collapse
- .use_mutex ⇒ Object private
Class Method Summary collapse
-
.handle(request) ⇒ Merb::Controller
private
Dispatch the rack environment.
-
.work_queue ⇒ Queue
private
The current queue of dispatch jobs.
Class Attribute Details
.use_mutex ⇒ 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.
9 10 11 |
# File 'lib/merb-core/dispatch/dispatcher.rb', line 9 def use_mutex @use_mutex end |
Class Method Details
.handle(request) ⇒ Merb::Controller
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.
28 29 30 |
# File 'lib/merb-core/dispatch/dispatcher.rb', line 28 def handle(request) request.handle end |
.work_queue ⇒ Queue
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 the current queue of dispatch jobs.
16 17 18 |
# File 'lib/merb-core/dispatch/dispatcher.rb', line 16 def work_queue @@work_queue end |