lib/registry.rb in regstry-1.0.13 vs lib/registry.rb in regstry-1.0.14

- old
+ new

@@ -81,9 +81,10 @@ obj = !(args.last.is_a?(Symbol) || args.last.is_a?(String)) ? args.pop : self args.reverse.map(&:to_sym).each do |key| obj.instance_variable_set(:@registry_key, key) registry[key] = obj end + self end def unregister(obj = self) return unless obj.respond_to?(:registry_key) && obj.registry_key registry.delete(obj.registry_key)