Module: Mail::CommonMessageId::InstanceMethods
- Defined in:
- lib/mail/fields/common/common_message_id.rb
Overview
:doc:
Instance Method Summary collapse
- #default ⇒ Object
- #element ⇒ Object
- #message_id ⇒ Object
- #message_ids ⇒ Object
- #parse(val = value) ⇒ Object
Instance Method Details
#default ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/mail/fields/common/common_message_id.rb', line 31 def default if .length == 1 [0] else end end |
#element ⇒ Object
11 12 13 |
# File 'lib/mail/fields/common/common_message_id.rb', line 11 def element @element ||= Mail::MessageIdsElement.new(value) end |
#message_id ⇒ Object
23 24 25 |
# File 'lib/mail/fields/common/common_message_id.rb', line 23 def element. end |
#message_ids ⇒ Object
27 28 29 |
# File 'lib/mail/fields/common/common_message_id.rb', line 27 def element. end |
#parse(val = value) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/mail/fields/common/common_message_id.rb', line 15 def parse(val = value) unless val.blank? @element = Mail::MessageIdsElement.new(val) else nil end end |