On 27 Jun 2007, at 13:36, Aryk Grosz wrote: > Hi, > > I have a module where I include modules as usual: > > module A > module B > end > module C > include B > include D > end > module D > end > > end > > When I require this file, I'll get an error here because module D is > being included before it gets loaded. I would need to put it above > module C to get it to work. How can I load the file, and then do > all the > includes so that it can actually find the module. Perhaps I'm missing something, but haven't you answered your own question... > I would need to put it above module C to get it to work. So the structure of the file should look like this: > module A > module B > end > module D > end > module C > include B > include D > end > end Perhaps there is something more complicated going on in your example that I am not understanding? Alex Gutteridge Bioinformatics Center Kyoto University