BaseSerializer

BaseSerializer

Base support for serializers that escape/unescape pieces as part of their serialization key. Provides esc() and unesc() helpers for building and parsing keys that embed other pieces. Subclasses must implement create() and tag(), plus whichever of store()/example()/template() they need.

Constructor

new BaseSerializer()

Source:

Methods

esc()

Description:
  • Escape a piece reference for embedding inside another key. Replaces "|" with "^" so the nested key does not break pipe-splitting.

Source:

unesc()

Description:
  • Unescape a piece reference embedded in a key arg. The Registry has already resolved "^"-escaped args into Piece instances before calling create(), so this helper is provided only for cases where manual resolution is needed outside of create().

Source: