✨ ARCANUM RUNE DIFFICULTY: Adept Behavioral

The Template Method of Ritual Casting

A skeletal structure for rituals with customizable steps.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Template Method
ARCANUM SCHOOL: Conjuration // Rituals
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
module TemplateMethod

type ritual_steps = {
  draw_circle: unit -> string;
  chant: unit -> string;
}

let perform_ritual (steps: ritual_steps) : string =
  let s1 = steps.draw_circle () in
  let s2 = steps.chant () in
  s1 ^ " and then " ^ s2

The Template Method is defined via a record of functions, allowing different arcane traditions to instantiate their own specific steps for a common ritual skeleton.

Runic Tags: #template #skeletons #rituals