Sha256: 9fbd386143e3b218035f43483a697af72b16527f6ec0c1d602f43d0dab5e8676

Contents?: true

Size: 400 Bytes

Versions: 3

Compression:

Stored size: 400 Bytes

Contents

require "attentive/token"

module Attentive
  module Tokens
    class AnyOf < Token
      attr_reader :possibilities

      def initialize(possibilities, pos)
        @possibilities = possibilities
        super pos
      end

      def ==(other)
        self.class == other.class && self.possibilities == other.possibilities
      end

      def ambiguous?
        true
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
attentive-0.1.1 lib/attentive/tokens/any_of.rb
attentive-0.1.0 lib/attentive/tokens/any_of.rb
attentive-0.1.0.beta1 lib/attentive/tokens/any_of.rb