Class: Textus::Produce::Acquire::Serializer

Inherits:
Object
  • Object
show all
Defined in:
lib/textus/produce/acquire/serializer.rb,
lib/textus/produce/acquire/serializer/json.rb,
lib/textus/produce/acquire/serializer/text.rb,
lib/textus/produce/acquire/serializer/yaml.rb

Overview

Abstract base for output serializers. Each concrete serializer owns producing the bytes for one manifest format (json/yaml/text). Rendering through a template is a publish concern (ADR 0094) — serializers here only serialize data; they take no arguments.

Direct Known Subclasses

Json, Text, Yaml

Defined Under Namespace

Classes: Json, Text, Yaml

Instance Method Summary collapse

Instance Method Details

#call(mentry:, data:) ⇒ Object

Raises:

  • (NotImplementedError)


9
10
11
12
13
# File 'lib/textus/produce/acquire/serializer.rb', line 9

def call(mentry:, data:)
  _ = mentry
  _ = data
  raise NotImplementedError.new("#{self.class.name}#call not implemented")
end