lib/registry.rb in regstry-1.0.3 vs lib/registry.rb in regstry-1.0.4
- old
+ new
@@ -76,10 +76,10 @@
obj.instance_variable_set(:@registry_key, key)
registry[key] = obj
end
def registered?(key)
- registry.key?(key)
+ registry.key?(key&.to_sym)
end
def lookup(key)
registered?(key) ? self[key] : registries[key]
end