Sha256: 8ef965e04dbf0b1a0598854825149ac29cbcd15d2339a53aa3b4dd1763281f65

Contents?: true

Size: 761 Bytes

Versions: 14

Compression:

Stored size: 761 Bytes

Contents

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


module Mail
  module MessageIds
    include Treetop::Runtime

    def root
      @root || :primary
    end

    include RFC2822

    module Primary0
      def message_ids
        [first_msg_id] + other_msg_ids.elements.map { |o| o.msg_id_value }
      end
    end

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

      r0 = _nt_message_ids
      r0.extend(Primary0)

      node_cache[:primary][start_index] = r0

      r0
    end

  end

  class MessageIdsParser < Treetop::Runtime::CompiledParser
    include MessageIds
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
mail-1.4.0 lib/mail/parsers/message_ids.rb
mail-1.3.5 lib/mail/parsers/message_ids.rb
mail-1.3.4 lib/mail/parsers/message_ids.rb
mail-1.3.3 lib/mail/parsers/message_ids.rb
mail-1.3.2 lib/mail/parsers/message_ids.rb
mail-1.3.1 lib/mail/parsers/message_ids.rb
mail-1.3.0 lib/mail/parsers/message_ids.rb
mail-1.2.9 lib/mail/parsers/message_ids.rb
mail-1.2.8 lib/mail/parsers/message_ids.rb
mail-1.2.6 lib/mail/parsers/message_ids.rb
mail-1.2.5 ./lib/mail/parsers/message_ids.rb
mail-1.2.1 ./lib/mail/parsers/message_ids.rb
mail-1.1.0 ./lib/mail/parsers/message_ids.rb
mail-1.0.0 ./lib/mail/parsers/message_ids.rb