seismometer.core.patterns.Singleton¶
- class seismometer.core.patterns.Singleton¶
- Metaclass for implementing the single instance pattern. For any call to create an instance of the class, look up the unique instance to return, or generate a new instance. - __init__(*args, **kwargs)¶
 - Methods - __init__(*args, **kwargs)- kill()- Used if the single instance needs to be reset/removed (example unit tests). - mro()- Return a type's method resolution order.