class Rack::Config
Rack::Config
modifies the environment using the block given during initialization.
Example:
use Rack::Config do |env| env['my-key'] = 'some-value' end
Public Class Methods
Source
# File lib/rack/config.rb, line 12 def initialize(app, &block) @app = app @block = block end
Public Instance Methods
Source
# File lib/rack/config.rb, line 17 def call(env) @block.call(env) @app.call(env) end