Permalink
Browse files

Document Rack::Config

  • Loading branch information...
1 parent dd0c71e commit 561e80002c46d37b33dd491538be790f62b6a80d @oscardelben committed Dec 26, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/rack/config.rb
View
@@ -1,6 +1,11 @@
module Rack
# Rack::Config modifies the environment using the block given during
# initialization.
+ #
+ # Example:
+ # use Rack::Config do |env|
+ # env['my-key'] = 'some-value'
+ # end
class Config
def initialize(app, &block)
@app = app

0 comments on commit 561e800

Please sign in to comment.