るりまサーチ (Ruby 2.4.0)

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

別のキーワード

  1. socket so_no_check
  2. mkmf check_sizeof
  3. mkmf check_signedness
  4. kernel check_sizeof
  5. kernel check_signedness

ライブラリ

検索結果

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 を返します。...