Class: Bugloco::Rack
- Inherits:
-
Object
- Object
- Bugloco::Rack
- Defined in:
- lib/bugloco/rack.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Rack
constructor
A new instance of Rack.
Constructor Details
#initialize(app) ⇒ Rack
Returns a new instance of Rack.
3 4 5 6 |
# File 'lib/bugloco/rack.rb', line 3 def initialize(app) @app = app # TODO: Set the framework end |
Instance Method Details
#call(env) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/bugloco/rack.rb', line 8 def call(env) response = @app.call(env) response rescue Exception => exception env["bugloco.error_id"] = Bugloco.report_notice(exception, rack_env: env) raise exception end |