♦️ RUBY ENCHANTMENTS DIFFICULTY: Apprentice Creational

The Factory Method

A foundational blood pact that defers the exact manifestation of summoned entities to the caster's chosen lineage.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Factory Method
ARCANUM SCHOOL: Conjuration // Bloodmancy
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// DYNAMIC RUBY BLOOD MAGIC //
class SummoningCircle
  def invoke_entity
    raise NotImplementedError, "Subclasses must implement the invocation ritual"
  end

  def commence_ritual
    entity = invoke_entity
    "The ritual begins: #{entity.manifest}"
  end
end

class CrimsonCircle < SummoningCircle
  def invoke_entity
    BloodFiend.new
  end
end

class VoidCircle < SummoningCircle
  def invoke_entity
    VoidStalker.new
  end
end

class Entity
  def manifest; raise NotImplementedError; end
end

class BloodFiend < Entity
  def manifest; "A beast of pure vitae materializes!"; end
end

class VoidStalker < Entity
  def manifest; "A shadow detaches itself from the darkness."; end
end

The Factory Method defines an interface for summoning but allows subclasses (the specific esoteric circles) to alter the type of entities that manifest. The base ritual remains consistent, dynamically weaving the precise arcane threads provided by the invoking lineage.

Runic Tags: #ruby #design-pattern #factory-method #blood-magic