class LoadError

def is_missing?(location)

extension) is the missing file which caused the exception to be raised.
Returns true if the given path name (except perhaps for the ".rb"
def is_missing?(location)
  location.sub(/\.rb$/, ''.freeze) == path.sub(/\.rb$/, ''.freeze)
end

def path

Returns the path which was unable to be loaded.
def path
  @path ||= begin
    REGEXPS.find do |regex|
      message =~ regex
    end
    $1
  end
end