class Maildir::Serializer::YAML

Serialize messages as YAML

Public Instance Methods

dump(data, path) click to toggle source

Dump data as YAML and writes it to path.

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

Read data from path and parse it as YAML.

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