方法
实例公共方法
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