Class: RestCore::Bypass
- Inherits:
-
Object
- Object
- RestCore::Bypass
- Defined in:
- lib/rest-core/middleware/bypass.rb
Overview
the simplest middleware
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.
6 7 8 |
# File 'lib/rest-core/middleware/bypass.rb', line 6 def initialize app @app = app end |
Instance Method Details
#call(env, &k) ⇒ Object
10 11 12 |
# File 'lib/rest-core/middleware/bypass.rb', line 10 def call env, &k @app.call(env, &k) end |