Module: Kobako::Snippet
- Defined in:
- lib/kobako/snippet.rb,
lib/kobako/snippet/binary.rb,
lib/kobako/snippet/source.rb,
sig/kobako/snippet.rbs,
sig/kobako/snippet/binary.rbs,
sig/kobako/snippet/source.rbs
Overview
Kobako::Snippet — value-object family for preloaded snippet entries
held by Kobako::Catalog::Snippets.
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.