diff options
author | Louise Crow <louise.crow@gmail.com> | 2011-02-21 19:55:41 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2011-02-21 19:55:41 +0000 |
commit | 2bcc1cc44b8f887a9969a83ed216486dd9677f89 (patch) | |
tree | 1fbc184ac1475d067c0e9a40bce96d77cc1b2831 /vendor/gems/rack-1.1.0/lib/rack/config.rb | |
parent | 95b596f2d5d5c8708435996d8e918b8f8e552995 (diff) |
Unpack rack 1.1.0 to vendor gems
Diffstat (limited to 'vendor/gems/rack-1.1.0/lib/rack/config.rb')
-rw-r--r-- | vendor/gems/rack-1.1.0/lib/rack/config.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/gems/rack-1.1.0/lib/rack/config.rb b/vendor/gems/rack-1.1.0/lib/rack/config.rb new file mode 100644 index 000000000..c6d446c0c --- /dev/null +++ b/vendor/gems/rack-1.1.0/lib/rack/config.rb @@ -0,0 +1,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 |