Class: Maildir::Serializer::Marshal
- Defined in:
- lib/maildir/serializer/marshal.rb
Overview
Serialize messages as Marshalled ruby objects
Instance Method Summary collapse
-
#dump(data, path) ⇒ Object
Marshal data and write it to path.
-
#load(path) ⇒ Object
Read data from path and unmarshal it.
Instance Method Details
#dump(data, path) ⇒ Object
Marshal data and write it to path.
9 10 11 |
# File 'lib/maildir/serializer/marshal.rb', line 9 def dump(data, path) super(::Marshal.dump(data), path) end |
#load(path) ⇒ Object
Read data from path and unmarshal it.
4 5 6 |
# File 'lib/maildir/serializer/marshal.rb', line 4 def load(path) ::Marshal.load(super(path)) end |