⚙️ RAKU RUNE DIFFICULTY: Apprentice Behavioral

Template Method

Defining the immutable skeletal framework of a century-long ritual.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Template Method
ARCANUM SCHOOL: Evocation // Ritualism
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// RAKU PATTERN //
role RitualTemplate {
    # The Template Method itself
    method perform-ritual() {
        self.draw-circle();
        self.invoke-power();
        self.seal-pact();
    }
    
    # Immutable steps
    method draw-circle() {
        say "Drawing the immutable century circle with chalk and salt.";
    }
    
    method seal-pact() {
        say "Sealing the spell with the caster's true name.";
    }
    
    # Step to be implemented by subclasses
    method invoke-power() { ... }
}

class BloodRitual does RitualTemplate {
    method invoke-power() {
        say "Invoking power via ancestral bloodlines.";
    }
}

class StarRitual does RitualTemplate {
    method invoke-power() {
        say "Invoking power by pulling down starlight.";
    }
}

my $ritual = StarRitual.new;
$ritual.perform-ritual();

There is a strict, unforgiving order to casting a Hundred-Year Spell. The circle must be drawn, power invoked, and the pact sealed. If the sequence is broken, the caster burns. The Template Method defines this exact skeletal framework in the base class, allowing apprentices to customize only the specific type of power being invoked without altering the critical sequence.

Runic Tags: #behavioral #template-method #raku #hundred-year-spell