Class: Rlyeh::DeepOnes::Closer
- Inherits:
-
Object
- Object
- Rlyeh::DeepOnes::Closer
- Includes:
- Rlyeh::Dispatcher
- Defined in:
- lib/rlyeh/deep_ones/closer.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Closer
constructor
A new instance of Closer.
Methods included from Rlyeh::Dispatcher
Constructor Details
#initialize(app) ⇒ Closer
Returns a new instance of Closer.
8 9 10 |
# File 'lib/rlyeh/deep_ones/closer.rb', line 8 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
12 13 14 15 |
# File 'lib/rlyeh/deep_ones/closer.rb', line 12 def call(env) dispatch env @app.call env if @app end |