Class: Rack::Debugged

Inherits:
Object
  • Object
show all
Defined in:
lib/debugged-ruby/rack.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Debugged

Returns a new instance of Debugged.



6
7
8
9
# File 'lib/debugged-ruby/rack.rb', line 6

def initialize(app)
  puts 'fuck'
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



11
12
13
14
15
16
# File 'lib/debugged-ruby/rack.rb', line 11

def call(env)
  @app.call(env)
rescue Exception => e
  ::Debugged.report(e,nil)
  raise(e)
end