1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
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