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: Error, GemInflector, GemLoader, Inflector, Loader, NameError, NullInflector, ReloadingDisabledError, SetupRequired

Constant Summary collapse

VERSION =
"2.6.15"

Class Method Summary collapse

Class Method Details

.with_loaderObject

This is a dangerous method.



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

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