Module: MailProcessor

Defined in:
lib/mail_processor.rb,
lib/mail_processor/base.rb,
lib/mail_processor/pop3.rb,
lib/mail_processor/mail_dir.rb,
lib/mail_processor/processor.rb

Defined Under Namespace

Classes: Base, MailDir, Pop3, Processor, UnkownRetrieverError

Instance Method Summary collapse

Instance Method Details

#merge_to_attributes(other) ⇒ Object

Symbolizes keys from yaml hashes while merging



26
27
28
29
30
31
32
# File 'lib/mail_processor/base.rb', line 26

def merge_to_attributes other
  h = @attributes
  other.each do |k, v|
    h[k.to_sym] = v
  end
  self
end