class Maildir::Serializer::Base

Overview

The Maildir::Serializer::Base class reads & writes data to disk as a string. Other serializers (e.g. Maildir::Serializer::Mail) can extend this class to do some pre- and post-processing of the string.

The Serializer API has two methods: load(path) # => returns data dump(data, path) # => returns number of bytes written

Direct Known Subclasses

Defined in:

serializer/base.cr

Instance Method Summary

Instance Method Detail

def dump(data, path) #

XXX


[View source]
def load(path) #

Reads the file at path. Returns the contents of path.


[View source]