Class: Mail::PhraseList
- Inherits:
-
Object
- Object
- Mail::PhraseList
- Defined in:
- lib/mail/elements/phrase_list.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#phrases ⇒ Object
readonly
Returns the value of attribute phrases.
Instance Method Summary collapse
-
#initialize(string) ⇒ PhraseList
constructor
A new instance of PhraseList.
Constructor Details
#initialize(string) ⇒ PhraseList
Returns a new instance of PhraseList.
10 11 12 13 14 15 16 17 |
# File 'lib/mail/elements/phrase_list.rb', line 10 def initialize(string) @phrases = if Utilities.blank? string [] else Mail::Parsers::PhraseListsParser.parse(string).phrases.map { |p| Mail::Utilities.unquote(p) } end end |
Instance Attribute Details
#phrases ⇒ Object (readonly)
Returns the value of attribute phrases.
8 9 10 |
# File 'lib/mail/elements/phrase_list.rb', line 8 def phrases @phrases end |