clean up generated ruby code