Use xmp filter to run ruby code. gem install rcodetools to make this work.