lib/registry.rb in regstry-1.0.10 vs lib/registry.rb in regstry-1.0.11
- old
+ new
@@ -100,10 +100,10 @@
def [](key)
registry[key && key.to_sym] || fail(MSGS[:unknown] % [key, registry.keys.sort])
end
def registry(name = nil)
- name ? registry_name(name) : @registry ||= registries.registry(registry_name)
+ @registry ||= registries.registry(registry_name(name))
end
def registry_name(name = nil)
name.nil? ? @registry_name ||= superclass.registry_name : @registry_name = name
end