Michael Gebhart wrote:
> mistake. Is there any possibility to check the code before running it?

try:

ruby -c yourfile.rb

regards,
George.