Sophrinix / TryRuby

Try Ruby is a interactive shell that quickly and whimsically teaches the Ruby programming language. Originally _why's idea, it has been recreated from the ground up by Rubyists who have a passion for Ruby and for teaching their fellow (wo)man how to program.
tryruby.org
345 stars 80 forks source link

Other ruby versions? #140

Open alokito opened 13 years ago

alokito commented 13 years ago

This is just a suggestion, but have you thought about allowing the user to change the ruby version? It may help with version specific behavior, for example the following:

[1,2,3, 'bob' => 'the builder', 'wendy' => 'another builder']

evaluates to something reasonable on the website, but fails on my local computer with

-:1: syntax error, unexpected tASSOC, expecting ']'

when it his the "=>" after bob. My machine is running 1.8.7, and the website has 1.9.2 which may have something to do with it.