Sha256: 405161b2e0ec3b3010f0d6c58e64d051cbe1daa70bda5f57c4c7bf85a9206a77

Contents?: true

Size: 422 Bytes

Versions: 14

Compression:

Stored size: 422 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true
require 'mail/parsers/phrase_lists_parser'
require 'mail/utilities'

module Mail
  class PhraseList #:nodoc:
    attr_reader :phrases

    def initialize(string)
      @phrases =
        if Utilities.blank? string
          []
        else
          Mail::Parsers::PhraseListsParser.parse(string).phrases.map { |p| Mail::Utilities.unquote(p) }
        end
    end
  end
end

Version data entries

14 entries across 14 versions & 5 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/mail-2.8.1/lib/mail/elements/phrase_list.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/mail-2.8.1/lib/mail/elements/phrase_list.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/mail-2.8.1/lib/mail/elements/phrase_list.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/mail-2.8.1/lib/mail/elements/phrase_list.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/mail-2.8.1/lib/mail/elements/phrase_list.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/mail-2.8.1/lib/mail/elements/phrase_list.rb
mail-2.8.1 lib/mail/elements/phrase_list.rb
mail-2.8.1.rc2 lib/mail/elements/phrase_list.rb
mail-2.8.0.1 lib/mail/elements/phrase_list.rb
mail-2.8.0.1.rc1 lib/mail/elements/phrase_list.rb
mail-2.8.0 lib/mail/elements/phrase_list.rb
mail-2.8.0.rc3 lib/mail/elements/phrase_list.rb
mail-2.8.0.rc2 lib/mail/elements/phrase_list.rb
mail-2.8.0.rc1 lib/mail/elements/phrase_list.rb