class Zeitwerk::Registry::Inceptions
:nodoc:
registry is for.
to know if a given cpath is an inception globally. This is what this
Loaders know their own inceptions, but there is a use case in which we need
def clear # for tests
: () -> void
def clear # for tests @inceptions.clear end
def initialize
:nodoc:
registry is for.
to know if a given cpath is an inception globally. This is what this
Loaders know their own inceptions, but there is a use case in which we need
def initialize @inceptions = Zeitwerk::Cref::Map.new #: Zeitwerk::Cref::Map[String] end
def register(cref, abspath)
def register(cref, abspath) @inceptions[cref] = abspath end
def registered?(cref)
def registered?(cref) @inceptions[cref] end
def unregister(cref)
def unregister(cref) @inceptions.delete(cref) end