Class: Raki::Idem
- Inherits:
-
MiddlewareBase
- Object
- MiddlewareBase
- Raki::Idem
- Defined in:
- lib/raki/idem.rb
Instance Method Summary collapse
Methods inherited from MiddlewareBase
Constructor Details
This class inherits a constructor from Raki::MiddlewareBase
Instance Method Details
#call(env) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/raki/idem.rb', line 6 def call(env) return env unless @app @block&.call(env) @app.call(env) end |