class Leafy::Rack::Instrumented

Public Class Methods

new( app, instrumented ) click to toggle source
# File leafy-rack/lib/leafy/rack/instrumented.rb, line 8
def initialize( app, instrumented )
  @app = app
  @instrumented = instrumented
end

Public Instance Methods

call( env ) click to toggle source
# File leafy-rack/lib/leafy/rack/instrumented.rb, line 13
def call( env )
  @instrumented.call do
    @app.call env
  end
end