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.2 vendor/bundle/jruby/2.5.0/gems/rack-1.6.6/lib/rack/config.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/rack-2.0.7/lib/rack/config.rb
rack-2.0.9 lib/rack/config.rb
rack-1.6.13 lib/rack/config.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/rack-2.0.8/lib/rack/config.rb
rack-1.6.12 lib/rack/config.rb
rack-2.0.8 lib/rack/config.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rack-2.0.7/lib/rack/config.rb
tdiary-5.1.0 vendor/bundle/gems/rack-2.0.7/lib/rack/config.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/rack-2.0.7/lib/rack/config.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/rack-2.0.7/lib/rack/config.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/rack-2.0.7/lib/rack/config.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/rack-2.0.7/lib/rack/config.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/rack-2.0.7/lib/rack/config.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/rack-2.0.7/lib/rack/config.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/rack-2.0.7/lib/rack/config.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/rack-2.0.7/lib/rack/config.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/rack-2.0.7/lib/rack/config.rb
spiral_form-0.1.1 vendor/bundle/gems/rack-2.0.7/lib/rack/config.rb
spiral_form-0.1.0 vendor/bundle/gems/rack-2.0.7/lib/rack/config.rb