============
There is nothing like that built in to Ruby or Python.

But there are lint tools that accomplish the same purpose. A bunch
are listed at http://stackoverflow...int-tool-for-ruby
that you can try. (I don't use Ruby myself.)
============

This gives this snippet:


Welcome to the world of dynamic languages. You gain a tremendous amount of flexibility, but you lose the ability to make static assertions about the code like "all the symbols I've referenced are valid at runtime". It's a tradeoff. That said, I think some of the recent IDEs attempt to identify mistakes like this. You might look into RubyMine or Netbeans. Personally, I agree with a previous commenter that your best bet is unit tests. If you want to be notified of mistakes quickly, use something like Autotest to run your tests constantly.


Ok. I'm starting to get it. I was annoyed, but it makes sense.