Module: Zeitwerk

Defined in:
lib/zeitwerk.rb,
lib/zeitwerk/error.rb,
lib/zeitwerk/loader.rb,
lib/zeitwerk/version.rb,
lib/zeitwerk/registry.rb,
lib/zeitwerk/inflector.rb,
lib/zeitwerk/gem_loader.rb,
lib/zeitwerk/gem_inflector.rb,
lib/zeitwerk/explicit_namespace.rb

Defined Under Namespace

Modules: ExplicitNamespace, Internal, RealModName, Registry Classes: Cref, Error, GemInflector, GemLoader, Inflector, Loader, NameError, NullInflector, ReloadingDisabledError, SetupRequired

Constant Summary collapse

VERSION =
"2.6.17"

Class Method Summary collapse

Class Method Details

.with_loaderObject

This is a dangerous method.



22
23
24
25
26
27
# File 'lib/zeitwerk.rb', line 22

def self.with_loader
  loader = Zeitwerk::Loader.new
  yield loader
ensure
  loader.unregister
end