Sha256: 986881f7db877e0f424198c6d687f367b917a7030a7a08ae28ecefe638278aad

Contents?: true

Size: 762 Bytes

Versions: 16

Compression:

Stored size: 762 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

16 entries across 16 versions & 2 rubygems

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