The Template Method Ward
Defining the skeletal structure of a ritual.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Template Method
ARCANUM SCHOOL: Evocation // Ritual Framework
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// PONY PATTERN //
trait val Ritual
fun perform() =>
prepare()
invoke()
seal()
fun prepare()
fun invoke()
fun seal()
The Template Method Ward
A default method implementation in a trait enforces the fixed sequence of the ritual, while subclasses fill in the specific magical incantations.
Runic Tags:
#pony
#template-method