diff --git a/lib/zeitwerk/explicit_namespace.rb b/lib/zeitwerk/explicit_namespace.rb index 391e39a..c7e96dc 100644 --- a/lib/zeitwerk/explicit_namespace.rb +++ b/lib/zeitwerk/explicit_namespace.rb @@ -29,7 +29,7 @@ class << self # @sig (String) -> Zeitwerk::Loader? internal def loader_for(mod, cname) - cpath = mod.equal?(Object) ? cname.name : "#{real_mod_name(mod)}::#{cname}" + cpath = Object.equal?(mod) ? cname.name : "#{real_mod_name(mod)}::#{cname}" @cpaths.delete(cpath) end