Class: ESI::RackConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/esi/rack_adapter.rb

Overview

override how config works for rack

Class Method Summary collapse

Class Method Details

.enableObject



16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/esi/rack_adapter.rb', line 16

def self.enable
  ESI::Config.class_eval do
    def self.config
      @@config ||= ESI::Config.new( {} )
    end
    def self.define(listeners=nil)
      puts ESI::Config.config.inspect
      yield ESI::Config.config
      puts ESI::Config.config.inspect
    end
  end
  nil
end