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

Cannot declare an array on www.tryruby.org #133

Closed jon80 closed 13 years ago

jon80 commented 13 years ago

The following code snippet is not being accepted:

a = [ 1, 'cat', 3.14159265 ]
SyntaxError:

:112: syntax error, unexpected tIDENTIFIER, expecting ']'
a = [ 1, 'cat', 3.14159265 ]

This has been documented within Programming Ruby (The Pragmatic Programmer's Guide), available online at http://www.ruby-doc.org/docs/ProgrammingRuby/.

Unfortunately no page number is available on the online document.

jon80 commented 13 years ago

However, the code snippet is available under heading 'Arrays and Hashes'

Sophrinix commented 13 years ago

try this under firefox. I think its the keyboard issue I have been working on solving for the last several weeks. Are you using an american keyboard? aka locale en-us?