Module: Mail::Parsers::Ragel

Defined in:
lib/mail/parsers/ragel.rb,
lib/mail/parsers/ragel/ruby.rb,
lib/mail/parsers/ragel/parser_info.rb,
lib/mail/parsers/ragel/ruby/machines/received_machine.rb,
lib/mail/parsers/ragel/ruby/machines/date_time_machine.rb,
lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb,
lib/mail/parsers/ragel/ruby/machines/content_type_machine.rb,
lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb,
lib/mail/parsers/ragel/ruby/machines/mime_version_machine.rb,
lib/mail/parsers/ragel/ruby/machines/address_lists_machine.rb,
lib/mail/parsers/ragel/ruby/machines/envelope_from_machine.rb,
lib/mail/parsers/ragel/ruby/machines/content_location_machine.rb,
lib/mail/parsers/ragel/ruby/machines/content_disposition_machine.rb,
lib/mail/parsers/ragel/ruby/machines/content_transfer_encoding_machine.rb

Defined Under Namespace

Modules: AddressListsMachine, ContentDispositionMachine, ContentLocationMachine, ContentTransferEncodingMachine, ContentTypeMachine, DateTimeMachine, EnvelopeFromMachine, MessageIdsMachine, MimeVersionMachine, PhraseListsMachine, ReceivedMachine, Ruby

Constant Summary

ACTIONS =
[
 :addr_spec,
 :address_e,
 :address_s,
 :angle_addr_s,
 :comment_e,
 :comment_s,
 :ctime_date_e,
 :ctime_date_s,
 :date_e,
 :date_s,
 :disp_type_e,
 :disp_type_s,
 :domain_e,
 :domain_s,
 :encoding_e,
 :encoding_s,
 :group_name_e,
 :group_name_s,
 :local_dot_atom_e,
 :local_dot_atom_pre_comment_e,
 :local_dot_atom_s,
 :local_quoted_string_e,
 :main_type_e,
 :main_type_s,
 :major_digits_e,
 :major_digits_s,
 :minor_digits_e,
 :minor_digits_s,
 :msg_id_e,
 :msg_id_s,
 :obs_domain_list_e,
 :obs_domain_list_s,
 :param_attr_e,
 :param_attr_s,
 :param_val_e,
 :param_val_s,
 :phrase_e,
 :phrase_s,
 :qstr_e,
 :qstr_s,
 :received_tokens_e,
 :received_tokens_s,
 :sub_type_e,
 :sub_type_s,
 :time_e,
 :time_s,
 :token_string_e,
 :token_string_s
]
FIELD_PARSERS =
%w[ address_lists phrase_lists
date_time received message_ids envelope_from
mime_version content_type content_disposition
content_transfer_encoding content_location ]

Class Method Summary (collapse)

Class Method Details

+ (Object) machine_module=(m)



12
13
14
# File 'lib/mail/parsers/ragel.rb', line 12

def self.machine_module=(m)
  @machine_module = m
end

+ (Object) parse(machine, string)



7
8
9
10
# File 'lib/mail/parsers/ragel.rb', line 7

def self.parse(machine, string)
  @machine_module ||= Ruby
  @machine_module.parse(machine, string)
end