Class: Mail::PhraseList

Inherits:
Object
  • Object
show all
Defined in:
lib/mail/elements/phrase_list.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#phrasesObject (readonly)

Returns the value of attribute phrases.



8
9
10
# File 'lib/mail/elements/phrase_list.rb', line 8

def phrases
  @phrases
end