Module: Bootsnap::LoadPathCache::CoreExt

Defined in:
lib/bootsnap/load_path_cache/core_ext/active_support.rb,
lib/bootsnap/load_path_cache/core_ext/kernel_require.rb

Defined Under Namespace

Modules: ActiveSupport

Class Method Summary collapse

Class Method Details

.make_load_error(path) ⇒ Object



5
6
7
8
9
10
# 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