Class: Rack::Env
- Inherits:
-
Object
- Object
- Rack::Env
- Defined in:
- lib/rack/env.rb,
lib/rack/env/version.rb
Constant Summary collapse
- VERSION =
"0.1.3"
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, options = {}) ⇒ Env
constructor
A new instance of Env.
Constructor Details
#initialize(app, options = {}) ⇒ Env
Returns a new instance of Env.
7 8 9 10 |
# File 'lib/rack/env.rb', line 7 def initialize(app, = {}) @app = app @options = end |
Instance Method Details
#call(env) ⇒ Object
12 13 14 15 |
# File 'lib/rack/env.rb', line 12 def call(env) set_env @app.call(env) end |