Fork me on GitHub

Each example following on this page are read in script tags on this page, use view source to see the exact setup.

A small script, js/loader.js, to read in any script tags on the page with type application/ruby. Another small shim, js/shims.js, normalizes the way the libraries execute ruby code. The source is pre processed to replace any $( to jQuery(, to keep the formatting consistent with the javascript syntax.

The scripts are read in and printed into a pre > code block and then evaluated and the result printed below.