Class: Rascut::Utils::ProcHandler

Inherits:
Mongrel::HttpHandler
  • Object
show all
Defined in:
lib/rascut/utils.rb

Instance Method Summary collapse

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