You encounter this error when there is a missing "end" somewhere.
Try running "ruby -w example.rb". The "-w" the warning mode for ruby to give more information about the missing "end".
If you are using Sublime Text 2, you can also try to re-indent your code.
Edit -> Line -> Reindent
No comments:
Post a Comment