Visitor: Smalltalk
Send an exorcist to inspect a diverse hierarchy of possessed objects without modifying them.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Visitor
ARCANUM SCHOOL: Necromancy // Soul Inspection
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// SMALLTALK PATTERN //
Object subclass: #ExorcistVisitor
instanceVariableNames: ''
classVariableNames: ''
package: 'Tekromancy-Seance'.
ExorcistVisitor >> visitDemon: aDemon [ aDemon burnAway ]
ExorcistVisitor >> visitGhost: aGhost [ aGhost guideToLight ]
Ghost >> accept: aVisitor [ aVisitor visitGhost: self ]
Walk the abstract syntax tree of possessed souls, applying specific cleansing algorithms to each.
Runic Tags:
#smalltalk
#behavioral
#seance