MCPcopy Create free account
hub / github.com/RefactoringGuru/design-patterns-python / main.py

File main.py

src/Observer/Conceptual/main.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2EN: Observer Design Pattern
3
4Intent: Lets you define a subscription mechanism to notify multiple objects

Callers

nothing calls this directly

Calls 6

ConcreteSubjectClass · 0.85
ConcreteObserverAClass · 0.85
ConcreteObserverBClass · 0.85
attachMethod · 0.45
some_business_logicMethod · 0.45
detachMethod · 0.45

Tested by

no test coverage detected