Class: Jscov::RackMiddleware

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

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ RackMiddleware

Returns a new instance of RackMiddleware.



7
8
9
# File 'lib/jscov/rack_middleware.rb', line 7

def initialize(app)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



11
12
13
14
# File 'lib/jscov/rack_middleware.rb', line 11

def call(env)
  response = @app.call(env)
  Bless.new(response).result
end