Method: Flyweight#unregister

Defined in:
lib/exegesis/flyweight.rb

#unregister(key_or_instance) ⇒ Object

Remove an instance from the flyweight

Parameters:

  • key_or_instance (Object)

    Either the key under which an instance is registered, or the instance itself.

Returns:

  • (Object)

    the instance deleted from the flyweight


69
70
71
# File 'lib/exegesis/flyweight.rb', line 69

def unregister(key_or_instance)
  proxy_across_keytypes(:delete, key_or_instance)
end