✨ ARCANUM RUNE DIFFICULTY: Apprentice Behavioral

The Arcane Skeleton (Template Method)

Defining the skeleton of an algorithm in an operation, deferring some steps to subclasses (or later scripts).

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Template Method
ARCANUM SCHOOL: Transmutation // Streamweaving
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
# Template Method: Execute a fixed sequence of steps
/PROCESS/ {
  # Step 1: Pre-process (Template skeleton)
  s/.*/[PRE] &/
  
  # Step 2: Hook for custom processing (Subclass responsibility)
  # E.g. relying on a specific marker that other sed commands can target later
  s/$/ [HOOK:CUSTOM]/
  
  # Step 3: Post-process (Template skeleton)
  s/$/ [POST]/
}
Runic Tags: #sed #behavioral #template-method