class Zeitwerk::Loader

def define_autoloads_for_dir(dir, parent)

@sig (String, Module) -> void
def define_autoloads_for_dir(dir, parent)
) do |basename, abspath, ftype|
type == :file
sename.delete_suffix!(".rb")
ef = Cref.new(parent, cname_for(basename, abspath))
toload_file(cref, abspath)

 collapse?(abspath)
define_autoloads_for_dir(abspath, parent)
se
cref = Cref.new(parent, cname_for(basename, abspath))
autoload_subdir(cref, abspath)
d