Class: Rlyeh::DeepOnes::Closer

Inherits:
Object
  • Object
show all
Includes:
Rlyeh::Dispatcher
Defined in:
lib/rlyeh/deep_ones/closer.rb

Instance Method Summary collapse

Methods included from Rlyeh::Dispatcher

#dispatch, included, #trigger

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