use ruby in scratch buffer