Add ruby closure