るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.109秒)

別のキーワード

  1. _builtin constants
  2. module constants
  3. constants standard_rights_read
  4. constants inet6_addrstrlen
  5. constants inet_addrstrlen

検索結果

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