るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.078秒)
トップページ > バージョン:2.6.0[x] > クエリ:Kernel.#p[x] > クエリ:JSON[x] > クエリ:cp[x] > クエリ:load[x] > クエリ:create_makefile[x] > クエリ:putc[x] > クエリ:gsub[x] > クラス:LoadError[x]

別のキーワード

  1. psych load_stream
  2. psych safe_load
  3. irb/cmd/load execute
  4. psych load
  5. psych load_file

ライブラリ

検索結果

LoadError#path -> String | nil (18400.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 を返します。...