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
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/rack-2.0.1/lib/rack/config.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/rack-1.6.5/lib/rack/config.rb
tdiary-5.0.4 vendor/bundle/gems/rack-1.6.5/lib/rack/config.rb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/config.rb
logstash-input-fifo-0.9.1 vendor/bundle/jruby/1.9/gems/rack-1.6.5/lib/rack/config.rb
logstash-input-fifo-0.9.0 vendor/bundle/jruby/1.9/gems/rack-1.6.5/lib/rack/config.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/config.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/config.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/config.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/config.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/config.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/config.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-2.0.1/lib/rack/config.rb
logstash-input-salesforce-3.0.0 vendor/jruby/1.9/gems/rack-1.6.5/lib/rack/config.rb
abaci-0.3.0 vendor/bundle/gems/rack-2.0.1/lib/rack/config.rb
arcabouco-0.2.13 vendor/bundle/gems/rack-1.6.4/lib/rack/config.rb
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/rack-1.6.5/lib/rack/config.rb
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/rack-1.6.5/lib/rack/config.rb
ivanvc-logstash-input-s3-3.1.1.2 vendor/local/gems/rack-1.6.5/lib/rack/config.rb
rack-1.6.5 lib/rack/config.rb