Sha256: 0aaccb4b633d1a31e0031e839685e1ae06000d75dcc39663e461a0a164357f84
Contents?: true
Size: 520 Bytes
Versions: 44
Compression:
Stored size: 520 Bytes
Contents
module Padrino ## # This module extend Sinatra::ShowExceptions adding Padrino as "Framework". # # @private class ShowExceptions < Sinatra::ShowExceptions private 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 end end
Version data entries
44 entries across 44 versions & 2 rubygems