Class: Rack::Lilypad
- Inherits:
-
Object
- Object
- Rack::Lilypad
- Defined in:
- lib/rack/lilypad.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, api_key = nil, &block) ⇒ Lilypad
constructor
A new instance of Lilypad.
Constructor Details
Instance Method Details
#call(env) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/rack/lilypad.rb', line 11 def call(env) status, headers, body = begin @app.call env rescue Exception => e ::Lilypad.notify e, env raise end if env['rack.exception'] ::Lilypad.notify env['rack.exception'], env end [ status, headers, body ] end |