Rack::ShowExceptions
# File lib/sinatra/showexceptions.rb, line 5 def initialize(app) @app = app @template = ERB.new(TEMPLATE) end
# File lib/sinatra/showexceptions.rb, line 10 def frame_class(frame) if frame.filename =~ /lib\/sinatra.*\.rb/ "framework" elsif (defined?(Gem) && frame.filename.include?(Gem.dir)) || frame.filename =~ /\/bin\/(\w+)$/ "system" else "app" end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.