Proxy: Smalltalk
Control access to a dangerous demon using a warded proxy spirit.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Proxy
ARCANUM SCHOOL: Abjuration // Spirit Ward
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// SMALLTALK PATTERN //
Object subclass: #WardedProxy
instanceVariableNames: 'trueDemon isWarded'
classVariableNames: ''
package: 'Tekromancy-Seance'.
WardedProxy >> commune: aMessage [
isWarded ifFalse: [ ^ self error: 'Ward broken! The demon attacks!' ].
^ trueDemon commune: aMessage
]
Never invoke the ancient ones directly. Always use a warded proxy to filter their corrosive messages.
Runic Tags:
#smalltalk
#structural
#seance