Sha256: 0d39e30e37f19f6d7c9512a0434495580442b06986b6bd722ab7b7fad673dc13

Contents?: true

Size: 286 Bytes

Versions: 16

Compression:

Stored size: 286 Bytes

Contents

# encoding: utf-8
module Mail
  class PhraseList
    
    include Mail::Utilities
    
    def initialize(string)
      @phrase_lists = Mail::Parsers::PhraseListsParser.new.parse(string)
    end
    
    def phrases
      @phrase_lists.phrases.map { |p| unquote(p) }
    end

  end
end

Version data entries

16 entries across 15 versions & 7 rubygems

Version Path
mail-2.6.4.rc2 lib/mail/elements/phrase_list.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/mail-2.6.3/lib/mail/elements/phrase_list.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/mail-2.6.3/lib/mail/elements/phrase_list.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/mail-2.6.3/lib/mail/elements/phrase_list.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/mail-2.6.3/lib/mail/elements/phrase_list.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/mail-2.6.3/lib/mail/elements/phrase_list.rb
mail-2.6.4.rc1 lib/mail/elements/phrase_list.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/mail-2.6.3/lib/mail/elements/phrase_list.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/mail-2.6.3/lib/mail/elements/phrase_list.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/mail-2.6.3/lib/mail/elements/phrase_list.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/mail-2.6.3/lib/mail/elements/phrase_list.rb
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/mail-2.6.3/lib/mail/elements/phrase_list.rb
mail-2.6.3 lib/mail/elements/phrase_list.rb
mail-portertech-2.6.2.edge lib/mail/elements/phrase_list.rb
mail-2.6.1 lib/mail/elements/phrase_list.rb
mail-2.6.0 lib/mail/elements/phrase_list.rb