lib/registry.rb in regstry-1.0.1 vs lib/registry.rb in regstry-1.0.2
- old
+ new
@@ -76,10 +76,10 @@
def registered?(key)
registry.key?(key)
end
def lookup(key)
- registries[key]
+ registered?(key) ? self[key] : registries[key]
end
def [](key)
registry[key&.to_sym] || fail(MSGS[:unknown] % [key, registry.keys.sort])
end