Become a Try Ruby Narrator Straightaway
Well, with the Try Ruby tutorial done, it’s time to work on adding a number of other more advanced tutorials. Or even just different takes on starting off.
You can find a list of tutorials in the
TUTORIALS constant. To start a small test tutorial I started:
run 'meta'. Alternatively, they’re listed in
>> Dir['/Tutorials/*'] => [".", "..", "intro.rb", "meta.rb"] >> require '/Tutorials/intro' => true
Finally, if you want to link directly to a tutorial: http://tryruby.hobix.com/?meta.
- Each lesson page is contained in a
divwith a CSS class of
- Summaries, chapter headers are a CSS class of
- Load code into the interpreter with a
divof CSS class of
load, placed inside the lesson page. It will be executed when the page is displayed.
- Check answers with
divelements. These elements contain a regular expression. If the answer matches the regexp, the lesson proceeds.
I still need a script to update the site from SVN. For now, I’ll push things over manually each night.
Safari patches are applied now. Sorry about that. No browser bigotry going on here, just compatibility infantility.