Update ruby snippet