✨ ARCANUM RUNE DIFFICULTY: Adept Behavioral

The Central Nexus (Mediator)

Defining an object that encapsulates how a set of patterns interact.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Mediator
ARCANUM SCHOOL: Transmutation // Streamweaving
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
# Mediator: Centralize routing instead of complex direct jumps
# All events go to the mediator label
/EVENT_A/ b mediator
/EVENT_B/ b mediator
b

:mediator
/EVENT_A/ {
  s/.*/Mediated A reaction/
}
/EVENT_B/ {
  s/.*/Mediated B reaction/
}
Runic Tags: #sed #behavioral #mediator