Class: Mail::PhraseList

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string) ⇒ PhraseList

Returns a new instance of PhraseList



10
11
12
# File 'lib/mail/elements/phrase_list.rb', line 10

def initialize(string)
  @phrases = Mail::Parsers::PhraseListsParser.parse(string).phrases.map { |p| Mail::Utilities.unquote(p) }
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