Class: Derailleur::RackApplicationHandler

Inherits:
RackHandler show all
Defined in:
lib/derailleur/core/handler.rb

Overview

This handler just call the result to a Rack-like application handler (the handler object must conform to the Rack specification) In that case, the Rack application has no view on the ctx variable anymore.

Instance Attribute Summary

Attributes included from Handler::Rack

#headers, #page, #status

Attributes inherited from Handler

#ctx, #env, #object

Instance Method Summary collapse

Methods inherited from RackHandler

#initialize

Methods included from Handler::Rack

#initialize_rack

Methods inherited from Handler

#initialize

Constructor Details

This class inherits a constructor from Derailleur::RackHandler

Instance Method Details

#to_rack_outputObject

Simply delegates the method call to the enclosed object.



97
98
99
# File 'lib/derailleur/core/handler.rb', line 97

def to_rack_output
  object.call(env)
end