rack.git  about / heads / tags
a modular Ruby webserver interface
blob c6d446c0c85e18c07b93707c8e536237261ffaeb 277 bytes (raw)
$ git show rack.io:lib/rack/config.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 
module Rack
  # Rack::Config modifies the environment using the block given during
  # initialization.
  class Config
    def initialize(app, &block)
      @app = app
      @block = block
    end

    def call(env)
      @block.call(env)
      @app.call(env)
    end
  end
end

git clone https://yhbt.net/rack.git