Sha256: 2ee12c8e7ee4d9a3d52ed198b1525b2be8e68104cc2c4f8283bcc6679c709e7c
Contents?: true
Size: 459 Bytes
Versions: 23
Compression:
Stored size: 459 Bytes
Contents
class LoadError REGEXPS = [ /^no such file to load -- (.+)$/i, /^Missing \w+ (?:file\s*)?([^\s]+.rb)$/i, /^Missing API definition file in (.+)$/i, /^cannot load such file -- (.+)$/i, ] # Returns true if the given path name (except perhaps for the ".rb" # extension) is the missing file which caused the exception to be raised. def is_missing?(location) location.sub(/\.rb$/, "".freeze) == path.sub(/\.rb$/, "".freeze) end end
Version data entries
23 entries across 23 versions & 3 rubygems