Class: Cased::RackMiddleware

Inherits:
Object
  • Object
show all
Defined in:
lib/cased/rack_middleware.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ RackMiddleware

Returns a new instance of RackMiddleware.



5
6
7
# File 'lib/cased/rack_middleware.rb', line 5

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



9
10
11
12
13
# File 'lib/cased/rack_middleware.rb', line 9

def call(env)
  @app.call(env)
ensure
  Cased::Context.clear!
end