📚 SMALLTALK SEANCE DIFFICULTY: Adept Behavioral

Chain of Responsibility: Smalltalk

Pass a plea through a circle of mediums until one has the power to answer it.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Chain of Responsibility
ARCANUM SCHOOL: Evocation // Seance Circle
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// SMALLTALK PATTERN //
Object subclass: #MediumCircle
  instanceVariableNames: 'nextMedium powerLevel'
  classVariableNames: ''
  package: 'Tekromancy-Seance'.

MediumCircle >> handleRequest: aRequest [
    aRequest intensity <= powerLevel
        ifTrue: [ self process: aRequest ]
        ifFalse: [ nextMedium ifNotNil: [ nextMedium handleRequest: aRequest ] ]
]

The incantation is whispered from medium to medium until the proper resonance is met.

Runic Tags: #smalltalk #behavioral #seance