Class: Vidibus::Realm::Rack
- Inherits:
-
Object
- Object
- Vidibus::Realm::Rack
- Defined in:
- lib/vidibus/realm/rack.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#env ⇒ Object
readonly
Returns the value of attribute env.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Rack
constructor
A new instance of Rack.
Constructor Details
#initialize(app) ⇒ Rack
Returns a new instance of Rack.
8 9 10 |
# File 'lib/vidibus/realm/rack.rb', line 8 def initialize(app) @app = app end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
6 7 8 |
# File 'lib/vidibus/realm/rack.rb', line 6 def app @app end |
#env ⇒ Object (readonly)
Returns the value of attribute env.
6 7 8 |
# File 'lib/vidibus/realm/rack.rb', line 6 def env @env end |
Instance Method Details
#call(env) ⇒ Object
12 13 14 15 16 |
# File 'lib/vidibus/realm/rack.rb', line 12 def call(env) @env = env env[:realm] = realm app.call(env) end |