class Maildir::Serializer::Marshal

Serialize messages as Marshalled ruby objects

Public Instance Methods

dump(data, path) click to toggle source

Marshal data and write it to path.

Calls superclass method Maildir::Serializer::Base#dump
# File lib/maildir/serializer/marshal.rb, line 11
def dump(data, path)
  super(::Marshal.dump(data), path)
end
load(path) click to toggle source

Read data from path and unmarshal it.

Calls superclass method Maildir::Serializer::Base#load
# File lib/maildir/serializer/marshal.rb, line 6
def load(path)
  ::Marshal.load(super(path))
end