Class: PryRescue::Rack
- Inherits:
-
Object
- Object
- PryRescue::Rack
- Defined in:
- lib/pry-rescue/rack.rb
Overview
A Rack middleware that wraps each web request in Pry::rescue.
Instance Method Summary collapse
-
#call(env) ⇒ Object
Handle a web request.
-
#initialize(app) ⇒ Rack
constructor
Instantiate the middleware.
Constructor Details
#initialize(app) ⇒ Rack
Instantiate the middleware
9 10 11 |
# File 'lib/pry-rescue/rack.rb', line 9 def initialize(app) @app = app end |