Convert to emitting ruby code for fun and profit