From: Andrew Walrond Date: 2005-04-02T06:44:53+09:00 Subject: Re: Kernel.load() behaviour On Friday 01 April 2005 22:37, Brian Mitchell wrote: > On Apr 1, 2005 11:48 AM, Aredridel wrote: > > > Not quite; Each of the 000s of packages is in it's own file.... ;) > > > > eval "module Packages\n" << `cat *.rb` << "\nend" > > > > ;-) > > module Packages > end > > Packages.module_eval( `cat glibc.rb`, 'glibc.rb`) # A little more elegant. > Almost perfect, but this avoids the external 'cat' dependency: Packages.module_eval( IO.readlines('glibc.rb').join, 'glibc.rb') I learned some more ruby today. Thanks all! Andrew