Rack::Config modifies the environment using the block given during initialization.

Example:

use Rack::Config do |env|
  env['my-key'] = 'some-value'
end
Methods
C
N
Class Public methods
new(app, &block)
# File lib/rack/config.rb, line 10
def initialize(app, &block)
  @app = app
  @block = block
end
Instance Public methods
call(env)
# File lib/rack/config.rb, line 15
def call(env)
  @block.call(env)
  @app.call(env)
end