るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.055秒)
トップページ > クエリ:Kernel.#require[x] > クエリ:$OFS[x] > クエリ:$ARGV[x] > クエリ:verbose=[x] > クエリ:$FIELD_SEPARATOR[x] > クラス:LoadError[x]

別のキーワード

  1. _builtin argv
  2. win32ole argv
  3. kernel $verbose
  4. kernel $error_position
  5. _builtin $verbose

ライブラリ

検索結果

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