Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class · Ruby 3.2

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
Attributes
Read

the path failed to load