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

Method do_c

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

Source from the content-addressed store, hash-verified

91
92class Component2(BaseComponent):
93 def do_c(self) -> None:
94 print("Component 2 does C.")
95 self.mediator.notify(self, "C")
96
97 def do_d(self) -> None:
98 print("Component 2 does D.")

Callers 1

notifyMethod · 0.80

Calls 1

notifyMethod · 0.45

Tested by

no test coverage detected