Methods
Constants
REGEXPS = [ [/^no such file to load -- (.+)$/i, 1], [/^Missing \w+ (file\s*)?([^\s]+.rb)$/i, 2], [/^Missing API definition file in (.+)$/i, 1]
Attributes
[R] path
Public Class methods
from_message(message)
    # File vendor/rails/activesupport/lib/active_support/core_ext/load_error.rb, line 12
12:   def self.from_message(message)
13:     REGEXPS.each do |regexp, capture|
14:       match = regexp.match(message)
15:       return MissingSourceFile.new(message, match[capture]) unless match.nil?
16:     end
17:     nil
18:   end
new(message, path)
   # File vendor/rails/activesupport/lib/active_support/core_ext/load_error.rb, line 3
3:   def initialize(message, path)
4:     super(message)
5:     @path = path
6:   end
Public Instance methods
is_missing?(path)
    # File vendor/rails/activesupport/lib/active_support/core_ext/load_error.rb, line 8
 8:   def is_missing?(path)
 9:     path.gsub(/\.rb$/, '') == self.path.gsub(/\.rb$/, '')
10:   end