From: Christian Neukirchen Date: 2005-02-16T01:18:28+09:00 Subject: Re: Ruby Source code checker George Moschovitis writes: > Michael Gebhart wrote: >> mistake. Is there any possibility to check the code before running it? > > try: > > ruby -c yourfile.rb This answer is a bit misleading, ruby -c will only check the file for syntactic correctness (which happens during parsing, anyway). In general, there is no way of telling a method-lookup at runtime will work, as Ruby is dynamically typed. Use unit-tests to ensure the correctness of your methods. Also, ruby -w may be useful to show up likely-to-be-problematic things as uninitalized instance variables etc. > regards, > George. -- Christian Neukirchen http://chneukirchen.org