るりまサーチ (Ruby 2.6.0)

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

別のキーワード

  1. win32ネイティブ版rubyの互換性問題
  2. セキュリティモデル securityerror
  3. セキュリティモデル filetest
  4. win32ネイティブ版rubyの互換性問題 platform/win32-native
  5. セキュリティモデル proc

ライブラリ

検索結果

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