module CrSerializer::Format

Overview

Can be included into a module to register that module as a serialization format.

The including module would have to implement the required logic for handling the process of serializing and deserializing the data.

module CustomFormat
  include CrSerializer::Format
end

some_obj.serialize CustomFormat
SomeType.deserialize CustomFormat, input_string_or_io

Defined in:

CrSerializer.cr