From: Mike Stephens Date: 2009-11-17T20:39:52+09:00 Subject: Re: Class inside a Method Body Brian Thanks for confirming it is a language feature. I was actually using the method as a kind of procedure - I just wanted this bit of the whole program to run. In that kind of procedural view of the world it does make absolute sense for a class to be declared whenever the procedure is called. I think this is part of a difficulty I have with Ruby - it seems to want to interpret everything in a program, and all the programs called (required), before it starts executing anything. -- Posted via http://www.ruby-forum.com/.