Class: Prosopite::Middleware::Rack

Inherits:
Object
  • Object
show all
Defined in:
lib/prosopite/middleware/rack.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Rack

Returns a new instance of Rack.



4
5
6
# File 'lib/prosopite/middleware/rack.rb', line 4

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



8
9
10
11
12
13
# File 'lib/prosopite/middleware/rack.rb', line 8

def call(env)
  Prosopite.scan 
  @app.call(env)
ensure
  Prosopite.finish
end