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_inflector.rb,
lib/zeitwerk/explicit_namespace.rb

Defined Under Namespace

Modules: ExplicitNamespace, RealModName, Registry Classes: Error, GemInflector, Inflector, Loader, NameError, ReloadingDisabledError

Constant Summary collapse

VERSION =
"2.5.1"

Class Method Summary collapse

Class Method Details

.with_loaderObject

This is a dangerous method.



18
19
20
21
22
23
# File 'lib/zeitwerk.rb', line 18

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