static public Method

MissingSourceFile.from_message(message)

There's no documentation for this item.

Source Code

# File active_support/core_ext/load_error.rb, line 12
def self.from_message(message)
  REGEXPS.each do |regexp, capture|
    match = regexp.match(message)
    return MissingSourceFile.new(message, match[capture]) unless match.nil?
  end
  nil
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.