Module: Kobako::Snippet
- Defined in:
- lib/kobako/snippet.rb,
lib/kobako/snippet/binary.rb,
lib/kobako/snippet/source.rb
Overview
Kobako::Snippet — value-object family for preloaded snippet entries held by Kobako::Catalog::Snippets (docs/behavior.md B-32 / B-33).
Source represents a single #preload(code:, name:) entry; Binary represents a single #preload(binary:) entry. Both are plain value objects with no dependency on the Catalog::Snippets registry that holds them — the registry reads their attributes externally when encoding the wire envelope.