From: Ron Jeffries Date: 2002-02-22T19:39:46+09:00 Subject: Re: recursive require On 21 Feb 2002 16:02:35 -0800, Yohanes Santoso wrote: >2. Use forward declaration >test.rb: >class Code end >Code.something() > >Personally, I like solution #2 because it's easy and fast. I put all >the forward declarations in a separate file which is 'require'd by >both code.rb and test.rb. Thanks for answering, but I'm araid I don't understand this idea. If test.rb doesn't require code.rb, how does this work? If the two files don't require each other, how can I run either one and get the tests to run (which is what I'm trying to accomplish)? Thanks, Ronald E Jeffries http://www.XProgramming.com http://www.objectmentor.com I'm giving the best advice I have. You get to decide whether it's true for you.