class

Maildir::Serializer::Base

Inherits Reference / Object

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

Instance methods

dump(data, path)

Writes data to the file at path. Returns the number of bytes written.

Source
load(path)

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

Source