Class: Maildir::Serializer::Mail
- Defined in:
- lib/maildir/serializer/mail.rb
Overview
Serialize messages as a ruby Mail object
Instance Method Summary collapse
-
#dump(data, path) ⇒ Object
Write data to path as a Mail message.
-
#load(path) ⇒ Object
Build a new Mail object from the data at path.
Instance Method Details
#dump(data, path) ⇒ Object
Write data to path as a Mail message.
10 11 12 |
# File 'lib/maildir/serializer/mail.rb', line 10 def dump(data, path) super(data.to_s, path) end |
#load(path) ⇒ Object
Build a new Mail object from the data at path.
5 6 7 |
# File 'lib/maildir/serializer/mail.rb', line 5 def load(path) ::Mail.new(super(path)) end |