方法
实例公共方法
is_missing?(location) 链接
如果给定的路径名(除了可能“.rb”扩展名)是导致异常抛出的缺失文件,则返回 true。
源代码:显示 | 在 GitHub 上
# File activesupport/lib/active_support/core_ext/load_error.rb, line 6 def is_missing?(location) location.delete_suffix(".rb") == path.to_s.delete_suffix(".rb") end