start porting terraformer.js to ruby