class AST::PropertyDeclaration attr_reader :name, :is_public def initialize(name, is_public) @name = name @is_public = is_public end def ==(other) other.is_a?(AST::PropertyDeclaration) && other.name == @name && other.is_public == @is_public end end