Try Ruby from your web browser

Posted on

From why the lucky stiff comes Try Ruby, an interactive online Ruby tutorial that connects your web browser to a live Ruby (irb) session. As the tutorial leads you to Rubyriffic delights, you follow along via the live command line - complete with a history and support for editing keys.

It’s slick. And because it’s an honest-to-goodness interactive Ruby session, you don’t need to stick to the script. If you want to play with continuations, for example, go for it:

>> i, c = 0; puts callcc { |c| c[] }; i += 1

=> 1
>> c["hello"]
=> 2
>> c["world"]
=> 3

Do check it out: Try Ruby.

comments powered by Disqus