Class: Rack::Passport
- Inherits:
-
Object
- Object
- Rack::Passport
- Defined in:
- lib/passport/passport.rb
Instance Attribute Summary collapse
-
#middleware ⇒ Object
Returns the value of attribute middleware.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Passport
constructor
A new instance of Passport.
Constructor Details
Instance Attribute Details
#middleware ⇒ Object
Returns the value of attribute middleware.
11 12 13 |
# File 'lib/passport/passport.rb', line 11 def middleware @middleware end |
Instance Method Details
#call(env) ⇒ Object
18 19 20 21 |
# File 'lib/passport/passport.rb', line 18 def call(env) self.middleware.each { |ware| ware.call(env) } @app.call(env) end |