Class: ESI::Dispatcher
- Inherits:
-
Mongrel::HttpHandler
- Object
- Mongrel::HttpHandler
- ESI::Dispatcher
- Defined in:
- lib/esi/dispatcher.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#router ⇒ Object
readonly
Returns the value of attribute router.
Instance Method Summary collapse
-
#initialize(options) ⇒ Dispatcher
constructor
A new instance of Dispatcher.
- #process(request, response) ⇒ Object
Constructor Details
#initialize(options) ⇒ Dispatcher
Returns a new instance of Dispatcher.
10 11 12 13 14 15 16 |
# File 'lib/esi/dispatcher.rb', line 10 def initialize( ) super() @config = ESI::Config.new( ) if @config.start_invalidator? ESI::Invalidator.start( self ) end end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
6 7 8 |
# File 'lib/esi/dispatcher.rb', line 6 def config @config end |
#router ⇒ Object (readonly)
Returns the value of attribute router.
6 7 8 |
# File 'lib/esi/dispatcher.rb', line 6 def router @router end |