class Padrino::ShowExceptions
This module extend Sinatra::ShowExceptions adding Padrino
as “Framework”.
@private
Private Instance Methods
frame_class(frame)
click to toggle source
# File lib/padrino-core/application/show_exceptions.rb, line 9 def frame_class(frame) if frame.filename =~ /lib\/sinatra.*\.rb|lib\/padrino.*\.rb/ "framework" elsif (defined?(Gem) && frame.filename.include?(Gem.dir)) || frame.filename =~ /\/bin\/(\w+)$/ || frame.filename =~ /Ruby\/Gems/ "system" else "app" end end