mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-12 18:34:22 +01:00
15 lines
277 B
Ruby
15 lines
277 B
Ruby
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
|