Module: Zeitwerk::ConstAdded

Defined in:
lib/zeitwerk/core_ext/module.rb

Instance Method Summary collapse

Instance Method Details

#const_added(cname) ⇒ Object



4
5
6
7
8
9
# File 'lib/zeitwerk/core_ext/module.rb', line 4

def const_added(cname)
  if loader = Zeitwerk::ExplicitNamespace.__loader_for(self, cname)
    loader.on_namespace_loaded(const_get(cname, false))
  end
  super
end