Class: RestCore::Bypass
- Inherits:
-
Object
- Object
- RestCore::Bypass
- Defined in:
- lib/rest-core/middleware/bypass.rb
Instance Method Summary collapse
- #call(env, &k) ⇒ Object
-
#initialize(app) ⇒ Bypass
constructor
A new instance of Bypass.
Constructor Details
#initialize(app) ⇒ Bypass
Returns a new instance of Bypass.
5 6 7 |
# File 'lib/rest-core/middleware/bypass.rb', line 5 def initialize app @app = app end |
Instance Method Details
#call(env, &k) ⇒ Object
9 10 11 |
# File 'lib/rest-core/middleware/bypass.rb', line 9 def call env, &k @app.call(env, &k) end |