From: Marnen Laibow-Koser Date: 2009-11-19T02:57:02+09:00 Subject: Re: Class inside a Method Body Mike Stephens wrote: > >> >> Of course you can! Why do you think you can't? >> >> Exactly. The required file can contain anything - from zero to multiple >> classes. > > If I put a class inside a method I get an error, so I assumed if I > insert code with the word 'class' in it, the same would happen. In that light, it's a reasonable assumption, but I don't think it's right. require is not *exactly* the same as literal inclusion. Have you had a chance to try it yet? Best, -- Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org -- Posted via http://www.ruby-forum.com/.