1件ヒット
[1-1件を表示]
(0.543秒)
トップページ > :Kernel.#require > :$OFS > :2.4.0 > :j > :$ERROR_POSITION > :create_makefile > :webrick/https > クラス:LoadError
ライブラリ
- ビルトイン (1)
検索結果
-
LoadError
# path -> String | nil (166.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 を返します。...