mirror of
https://github.com/rjNemo/design-patterns
synced 2026-06-06 02:26:40 +00:00
* doc: create documentation * chore: put package in the right place * doc: edit general doc * add code example
12 lines
450 B
Python
12 lines
450 B
Python
class Receiver:
|
|
"""
|
|
The Receiver classes contain some important business logic. They know how to
|
|
perform all kinds of operations, associated with carrying out a request. In
|
|
fact, any class may serve as a Receiver.
|
|
"""
|
|
|
|
def do_something(self, a: str) -> None:
|
|
print(f"\nReceiver: Working on ({a}).", end="")
|
|
|
|
def do_something_else(self, b: str) -> None:
|
|
print(f"\nReceiver: Also working on ({b}).", end="")
|