Class: Leafy::Rack::Instrumented
- Inherits:
-
Object
- Object
- Leafy::Rack::Instrumented
- Defined in:
- lib/leafy/rack/instrumented.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, instrumented) ⇒ Instrumented
constructor
A new instance of Instrumented.
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 |