Method: Zeitwerk::Loader#do_not_eager_load

Defined in:
lib/zeitwerk/loader.rb

#do_not_eager_load(*paths) ⇒ Object

Let eager load ignore the given files or directories. The constants defined in those files are still autoloadable.


435
436
437
# File 'lib/zeitwerk/loader.rb', line 435

def do_not_eager_load(*paths)
  mutex.synchronize { eager_load_exclusions.merge(expand_paths(paths)) }
end