Module: Mail::CommonMessageId
- Included in:
- InReplyToField, MessageIdField, ReferencesField, ResentMessageIdField
- Defined in:
- lib/mail/fields/common/common_message_id.rb
Overview
:nodoc:
Instance Method Summary collapse
- #default ⇒ Object
- #element ⇒ Object
- #message_id ⇒ Object
- #message_ids ⇒ Object
- #parse(val = value) ⇒ Object
Instance Method Details
#default ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/mail/fields/common/common_message_id.rb', line 24 def default return nil unless if .length == 1 [0] else end end |
#element ⇒ Object
4 5 6 |
# File 'lib/mail/fields/common/common_message_id.rb', line 4 def element @element ||= Mail::MessageIdsElement.new(value) unless value.blank? end |
#message_id ⇒ Object
16 17 18 |
# File 'lib/mail/fields/common/common_message_id.rb', line 16 def element. if element end |
#message_ids ⇒ Object
20 21 22 |
# File 'lib/mail/fields/common/common_message_id.rb', line 20 def element. if element end |
#parse(val = value) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/mail/fields/common/common_message_id.rb', line 8 def parse(val = value) unless val.blank? @element = Mail::MessageIdsElement.new(val) else nil end end |