Module: Mail::Parsers::Ragel::Ruby

Defined in:
lib/mail/parsers/ragel/ruby.rb

Constant Summary

MACHINE_LIST =
{
  :address_lists => AddressListsMachine,
  :phrase_lists => PhraseListsMachine,
  :date_time => DateTimeMachine,
  :received => ReceivedMachine,
  :message_ids => MessageIdsMachine,
  :envelope_from => EnvelopeFromMachine,
  :mime_version => MimeVersionMachine,
  :content_type => ContentTypeMachine,
  :content_disposition => ContentDispositionMachine,
  :content_transfer_encoding => ContentTransferEncodingMachine,
  :content_location => ContentLocationMachine
}

Class Method Summary (collapse)

Class Method Details

+ (Object) parse(machine, string)



23
24
25
# File 'lib/mail/parsers/ragel/ruby.rb', line 23

def self.parse(machine, string)
  MACHINE_LIST[machine].parse(string)
end