The Echoes of the Past (Memento)
Capturing and externalizing an object's internal state so it can be restored later.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Memento
ARCANUM SCHOOL: Transmutation // Streamweaving
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
# Memento: Save the pattern space to the hold space, mutate it, and revert
/START/ {
# Save state
h
# Perform destructive operations
s/.*/MUTATED STATE/
p
# Restore state
g
}
Runic Tags:
#sed
#behavioral
#memento