class ExceptionHandler
Public Class Methods
new(app)
click to toggle source
# File lib/exception_handler.rb, line 2 def initialize(app) @app = app @res = Rack::Response.new end
Public Instance Methods
call(env)
click to toggle source
# File lib/exception_handler.rb, line 7 def call(env) begin app.call(env) rescue => e puts e end end