Dave Thomas wrote: > > On Saturday, Oct 4, 2003, at 16:37 US/Central, Joel VanderWerf wrote: > >> >> I wonder if anyone else has seen this with the recent CVS of Rdoc. It >> wasn't happening as recently as 28 May 2003, but with the 23 Sep 2003 >> CVS, using M::C when M is in a required file causes a problem. >> >> ==== a.rb ==== >> require './m' >> # module M; end # this prevents the problem >> > > In the past, RDoc didn't bother to look for the actual definition of > modules, but now it does. However, it also does not actually execute > your program, so it doesn't perform the require, and hence doesn't load > up module 'M' before you then use it later in the code. Actually, I had the same problem with either order of the two files. It didn't help to see the file containing the definition of M first. I'm happy with the older version, for now. Thanks!