Parent

Sinatra::ShowExceptions

Constants

TEMPLATE

Public Class Methods

new(app) click to toggle source
# File lib/sinatra/showexceptions.rb, line 5
def initialize(app)
  @app      = app
  @template = ERB.new(TEMPLATE)
end

Public Instance Methods

frame_class(frame) click to toggle source
# 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.