Method: Zeitwerk::Loader#do_not_eager_load

Defined in:
lib/zeitwerk/loader.rb

#do_not_eager_load(*paths) ⇒ void

This method returns an undefined value.

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

Parameters:

  • paths (<String, Pathname, <String, Pathname>>)

374
375
376
# File 'lib/zeitwerk/loader.rb', line 374

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