You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
601 B
24 lines
601 B
# frozen_string_literal: true
|
|
|
|
module Zeitwerk
|
|
require_relative "zeitwerk/real_mod_name"
|
|
require_relative "zeitwerk/loader"
|
|
require_relative "zeitwerk/registry"
|
|
require_relative "zeitwerk/explicit_namespace"
|
|
require_relative "zeitwerk/inflector"
|
|
require_relative "zeitwerk/gem_inflector"
|
|
require_relative "zeitwerk/kernel"
|
|
require_relative "zeitwerk/error"
|
|
require_relative "zeitwerk/version"
|
|
|
|
# This is a dangerous method.
|
|
#
|
|
# @experimental
|
|
# @sig () -> void
|
|
def self.with_loader
|
|
loader = Zeitwerk::Loader.new
|
|
yield loader
|
|
ensure
|
|
loader.unregister
|
|
end
|
|
end
|
|
|