11件ヒット
[1-11件を表示]
(0.645秒)
トップページ > :Kernel.#p > :$POSTMATCH > :egrep_cpp > :install_files > :ancestors > クラス:LoadError > :インスタンスメソッド
ライブラリ
- ビルトイン (11)
検索結果
-
LoadError
# path -> String | nil (6134.0) -
Kernel.#require や Kernel.#load に失敗したパスを返します。
...
Kernel.#require や Kernel.#load に失敗したパスを返します。
begin
require 'this/file/does/not/exist'
rescue LoadError => e
e.path # => 'this/file/does/not/exist'
end
パスが定まらない場合は nil を返します。...