Michael Gebhart wrote:
> Hi,
> 
> currently I am doing my first steps with ruby. It's really great, but
> sometimes I'm doing some very stupid mistakes :) I only realize this, when
> running the program and starting the function, where I have done the
> mistake. Is there any possibility to check the code before running it?

Try "ruby -c your_script.rb"

Also try a great tool - "irb" - which is the interactive ruby.

> Because if I do not run the function, I'll never see, that there is a
> error, which is followed by a crash. The problem is, that
> ruby doesn't know the types, the variables have. When I do:
> 
> @variable.function
> 
> ruby does not know, if the method "function" is avaibable or not. But
> nevertheless, is it possible to find out some errors without running the
> program and starting the function?
> 
> Greetings
> 
> Michael

--
   s&g