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
[ show source ]
# 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
[ show source ]
# 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
[ show source ]
# 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