Sha256: d4d2e2a9a47a1d87ad50456b5371ab5b3f6366016371e1c21b764a78350b0351

Contents?: true

Size: 298 Bytes

Versions: 9

Compression:

Stored size: 298 Bytes

Contents

module Lrama
  class Grammar
    class Type
      attr_reader :id, :tag

      def initialize(id:, tag:)
        @id = id
        @tag = tag
      end

      def ==(other)
        self.class == other.class &&
        self.id == other.id &&
        self.tag == other.tag
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
lrama-0.6.9 lib/lrama/grammar/type.rb
lrama-0.6.8 lib/lrama/grammar/type.rb
lrama-0.6.7 lib/lrama/grammar/type.rb
lrama-0.6.6 lib/lrama/grammar/type.rb
lrama-0.6.5 lib/lrama/grammar/type.rb
lrama-0.6.4 lib/lrama/grammar/type.rb
lrama-0.6.3 lib/lrama/grammar/type.rb
lrama-0.6.2 lib/lrama/grammar/type.rb
lrama-0.6.1 lib/lrama/grammar/type.rb