Sha256: b221a5eaabad38109402cda4d61d62fef1593c12c9f2009dde76711486057506

Contents?: true

Size: 379 Bytes

Versions: 196

Compression:

Stored size: 379 Bytes

Contents

module Rack
  # Rack::Config modifies the environment using the block given during
  # initialization.
  #
  # Example:
  #     use Rack::Config do |env|
  #       env['my-key'] = 'some-value'
  #     end
  class Config
    def initialize(app, &block)
      @app = app
      @block = block
    end

    def call(env)
      @block.call(env)
      @app.call(env)
    end
  end
end

Version data entries

196 entries across 176 versions & 43 rubygems

Version Path
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/rack-1.5.2/lib/rack/config.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/rack-1.5.2/lib/rack/config.rb
torquebox-console-0.3.0 vendor/bundle/jruby/1.9/gems/rack-1.5.2/lib/rack/config.rb
challah-1.0.0 vendor/bundle/gems/rack-1.5.2/lib/rack/config.rb
torquebox-console-0.2.5 vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/config.rb
torquebox-console-0.2.5 vendor/bundle/jruby/1.9/gems/rack-1.5.2/lib/rack/config.rb
vagrant-actionio-0.0.9 vendor/bundle/gems/rack-1.5.2/lib/rack/config.rb
torquebox-console-0.2.4 vendor/bundle/ruby/1.8/gems/rack-1.5.2/lib/rack/config.rb
torquebox-console-0.2.4 vendor/bundle/jruby/1.9/gems/rack-1.5.2/lib/rack/config.rb
torquebox-console-0.2.3 vendor/bundle/jruby/1.9/gems/rack-1.5.2/lib/rack/config.rb
rack-1.5.2 lib/rack/config.rb
devise_sociable-0.1.0 vendor/bundle/gems/rack-1.5.1/lib/rack/config.rb
rack-1.5.1 lib/rack/config.rb
rack-1.5.0 lib/rack/config.rb
rack-1.5.0.beta.2 lib/rack/config.rb
rack-1.5.0.beta.1 lib/rack/config.rb