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