module Bootsnap::LoadPathCache::CoreExt
Public Class Methods
make_load_error(path)
click to toggle source
# File lib/bootsnap/load_path_cache/core_ext/kernel_require.rb, line 5 def self.make_load_error(path) err = LoadError.new(+"cannot load such file -- #{path}") err.instance_variable_set(Bootsnap::LoadPathCache::ERROR_TAG_IVAR, true) err.define_singleton_method(:path) { path } err end