1件ヒット
[1-1件を表示]
(0.528秒)
トップページ > :Kernel.#p > :2.3.0 > :chomp > :try_static_assert > :ruby 1.8.2 feature > :test > クラス:LoadError > :ビルトイン
検索結果
-
LoadError
# path -> String | nil (18406.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 を返します。...