Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
92
class
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
notify
Method · 0.80
Calls
1
notify
Method · 0.45
Tested by
no test coverage detected