Google

def ==( other ) other.kind_of?(Attribute) and other.name==name and other.value==@value end