Class: Leafy::Rack::Instrumented

Inherits:
Object
  • Object
show all
Defined in:
lib/leafy/rack/instrumented.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, instrumented) ⇒ Instrumented

Returns a new instance of Instrumented.



8
9
10
11
# File 'lib/leafy/rack/instrumented.rb', line 8

def initialize( app, instrumented )
  @app = app
  @instrumented = instrumented
end

Instance Method Details

#call(env) ⇒ Object



13
14
15
16
17
# File 'lib/leafy/rack/instrumented.rb', line 13

def call( env )
  @instrumented.call do
    @app.call env
  end
end