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
347 stars 79 forks source link

odd behavior with .reverse. #105

Open robertwatkins opened 13 years ago

robertwatkins commented 13 years ago

I'm trying the beta on a Mac using Chrome and there is odd behavior with the .reverse command. (even when I spell things correctly)

"Robert".reverse
SyntaxError:

:367: syntax error, unexpected tSTRING_BEG, expecting ')'
"Robert".reverse
^

:368: syntax error, unexpected keyword_end, expecting '}' "Robrert".reverse SyntaxError:
:585: syntax error, unexpected ':', expecting '}'
:587: syntax error, unexpected keyword_end, expecting '}' "Robert":reverse SyntaxError:
:590: syntax error, unexpected ':', expecting keyword _end "Robert":reverse ^ "Robert".reverse => "treboR" "Robert".reverse SyntaxError:
:367: syntax error, unexpected tSTRING_BEG, expecting ')' "Robert".reverse ^
:368: syntax error, unexpected keyword_end, expecting '}' "Robert".reverse => "treboR" "Robert".reverse .. .. R .. : .. " SyntaxError:
:372: syntax error, unexpected ':', expecting '}'
:373: unterminated string meets end of file "Robert".reverse .. " SyntaxError:
:639: unterminated string meets end of file
:639: syntax error, unexpected $end, expecting keyword_end "Robert".reverse .. " SyntaxError:
:372: syntax error, unexpected ':', expecting '}'
:373: unterminated string meets end of file " SyntaxError:
:138: unterminated string meets end of file
:138: syntax error, unexpected $end, expecting keyword_end " SyntaxError:
:642: unterminated string meets end of file
:642: syntax error, unexpected $end, expecting keyword_end Robert.reverse ArgumentError: Anonymous modules have no name to be referenced by "Robert".reverse => "treboR" "Robert".reverse .. " SyntaxError:
:604: unterminated string meets end of file
:604: syntax error, unexpected $end, expecting keyword_end "Robert".reverse .. " SyntaxError:
:605: unterminated string meets end of file
:605: syntax error, unexpected $end, expecting keyword_end