るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.066秒)
トップページ > クエリ:Kernel.#p[x] > クエリ:cp[x] > ライブラリ:ビルトイン[x] > クエリ:$PROGRAM_NAME[x] > クエリ:String[x] > クラス:LoadError[x]

別のキーワード

  1. win32ole cp_utf8
  2. win32ole cp_utf7
  3. fileutils cp_r
  4. win32ole cp_symbol
  5. win32ole cp_maccp

検索結果

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