Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class · Ruby 4.1
LoadError
Raised when a file required (a Ruby script, extension library, …) fails to load.
Example
require 'this/file/does/not/exist'
raises the exception:
LoadError: no such file to load -- this/file/does/not/exist
for RubyGems without Bundler environment. If loading library is not part of the default gems and the bundled gems, warn it.
Attributes
Read
the path that failed to load