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
logstash-output-scalyr-0.1.14.beta vendor/bundle/jruby/2.5.0/gems/rack-1.6.6/lib/rack/config.rb
logstash-output-scalyr-0.1.13 vendor/bundle/jruby/2.5.0/gems/rack-1.6.6/lib/rack/config.rb
logstash-output-scalyr-0.1.12 vendor/bundle/jruby/2.5.0/gems/rack-1.6.6/lib/rack/config.rb
logstash-output-scalyr-0.1.11.beta vendor/bundle/jruby/2.5.0/gems/rack-1.6.6/lib/rack/config.rb
logstash-output-scalyr-0.1.10.beta vendor/bundle/jruby/2.5.0/gems/rack-1.6.6/lib/rack/config.rb
logstash-output-scalyr-0.1.9 vendor/bundle/jruby/2.5.0/gems/rack-1.6.6/lib/rack/config.rb
logstash-output-scalyr-0.1.8 vendor/bundle/jruby/2.5.0/gems/rack-1.6.6/lib/rack/config.rb
logstash-output-scalyr-0.1.7 vendor/bundle/jruby/2.5.0/gems/rack-1.6.6/lib/rack/config.rb
logstash-output-scalyr-0.1.6 vendor/bundle/jruby/2.5.0/gems/rack-1.6.6/lib/rack/config.rb
logstash-output-newrelic-1.2.0 vendor/bundle/jruby/2.5.0/gems/rack-1.6.6/lib/rack/config.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/rack-2.0.8/lib/rack/config.rb
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.5.0/gems/rack-1.6.6/lib/rack/config.rb
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.3.0/gems/rack-1.6.5/lib/rack/config.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.3.0/gems/rack-1.6.5/lib/rack/config.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.5.0/gems/rack-1.6.6/lib/rack/config.rb
logstash-output-scalyr-0.1.5 vendor/bundle/jruby/2.5.0/gems/rack-1.6.6/lib/rack/config.rb
logstash-output-scalyr-0.1.4 vendor/bundle/jruby/2.5.0/gems/rack-1.6.6/lib/rack/config.rb
logstash-output-scalyr-0.1.3 vendor/bundle/jruby/2.5.0/gems/rack-1.6.6/lib/rack/config.rb
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/config.rb
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/rack-2.0.6/lib/rack/config.rb