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

File main.py

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

Source from the content-addressed store, hash-verified

1"""
2EN: Memento Design Pattern
3
4Intent: Lets you save and restore the previous state of an object without

Callers

nothing calls this directly

Calls 6

OriginatorClass · 0.85
CaretakerClass · 0.85
backupMethod · 0.80
show_historyMethod · 0.80
undoMethod · 0.80
do_somethingMethod · 0.45

Tested by

no test coverage detected