Class: Rack::Env

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/env.rb,
lib/rack/env/version.rb

Constant Summary collapse

VERSION =
"0.1.3"

Instance Method Summary collapse

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, options = {})
  @app     = app
  @options = 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