Class: Rascut::Utils::ProcHandler
- Inherits:
-
Mongrel::HttpHandler
- Object
- Mongrel::HttpHandler
- Rascut::Utils::ProcHandler
- Defined in:
- lib/rascut/utils.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ ProcHandler
constructor
A new instance of ProcHandler.
- #process(req, res) ⇒ Object
Constructor Details
#initialize(&block) ⇒ ProcHandler
Returns a new instance of ProcHandler.
56 57 58 |
# File 'lib/rascut/utils.rb', line 56 def initialize(&block) @proc = block end |
Instance Method Details
#process(req, res) ⇒ Object
60 61 62 |
# File 'lib/rascut/utils.rb', line 60 def process(req, res) @proc.call(req, res) end |