るりまサーチ (Ruby 2.5.0)

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

別のキーワード

  1. _builtin try_convert
  2. mkmf try_constant
  3. mkmf try_compile
  4. mkmf try_static_assert
  5. mkmf try_type

ライブラリ

検索結果

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