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

Method do_a

src/Mediator/Conceptual/main.py:83–85  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81
82class Component1(BaseComponent):
83 def do_a(self) -> None:
84 print("Component 1 does A.")
85 self.mediator.notify(self, "A")
86
87 def do_b(self) -> None:
88 print("Component 1 does B.")

Callers 1

main.pyFile · 0.80

Calls 1

notifyMethod · 0.45

Tested by

no test coverage detected