Sha256: e91d7017fdc2d3891711a2b4a9fbbdc39a873ff2b29fa154d4f1847c4111ebd4

Contents?: true

Size: 808 Bytes

Versions: 16

Compression:

Stored size: 808 Bytes

Contents

# Autogenerated from a Treetop grammar. Edits may be lost.


module Mail
  module PhraseLists
    include Treetop::Runtime

    def root
      @root ||= :primary_phrase
    end

    include RFC2822

    module PrimaryPhrase0
      def phrases
        [first_phrase] + other_phrases.elements.map { |o| o.phrase_value }
      end
    end

    def _nt_primary_phrase
      start_index = index
      if node_cache[:primary_phrase].has_key?(index)
        cached = node_cache[:primary_phrase][index]
        @index = cached.interval.end if cached
        return cached
      end

      r0 = _nt_phrase_list
      r0.extend(PrimaryPhrase0)

      node_cache[:primary_phrase][start_index] = r0

      r0
    end

  end

  class PhraseListsParser < Treetop::Runtime::CompiledParser
    include PhraseLists
  end

end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
mail-2.1.3 lib/mail/parsers/phrase_lists.rb
kbaum-mail-2.1.2.1 lib/mail/parsers/phrase_lists.rb
mail-2.1.2 lib/mail/parsers/phrase_lists.rb
mail-2.1.1 lib/mail/parsers/phrase_lists.rb
mail-2.1.0 lib/mail/parsers/phrase_lists.rb
mail-2.0.5 lib/mail/parsers/phrase_lists.rb
mail-2.0.3 lib/mail/parsers/phrase_lists.rb
mail-1.6.0 lib/mail/parsers/phrase_lists.rb
mail-1.5.4 lib/mail/parsers/phrase_lists.rb
mail-1.5.3 lib/mail/parsers/phrase_lists.rb
mail-1.5.2 lib/mail/parsers/phrase_lists.rb
mail-1.5.1 lib/mail/parsers/phrase_lists.rb
mail-1.5.0 lib/mail/parsers/phrase_lists.rb
mail-1.4.3 lib/mail/parsers/phrase_lists.rb
mail-1.4.2 lib/mail/parsers/phrase_lists.rb
mail-1.4.1 lib/mail/parsers/phrase_lists.rb