Added Ruby styles for comparing objects.