actually it seems you have to use it like this require_files_in_dir( 'c:\*.rb')
----- Original Message ----- From: Paul Rogers <[EMAIL PROTECTED]> Date: Wednesday, May 30, 2007 9:43 am Subject: Re: [Wtr-general] 'Require' Lots Of Files > > def require_files_in_dir > .... > end > > require_files_in_dir( 'c:\') > require_files_in_dir( 'c:\temp') > > > > ----- Original Message ----- > From: Fletch <[EMAIL PROTECTED]> > Date: Wednesday, May 30, 2007 9:39 am > Subject: Re: [Wtr-general] 'Require' Lots Of Files > > > Thanks for the reply - not to sound silly at all, but where do I > > put this method? > > > > All the require files normally go at the top of the file, but I > > have tried putting the code everywhere I can think of and still > > have had no luck. > > > > -- > > > > require > > > > className > > def test1 > > end > > def test2 > > end > > end > > > > -- > > > > Ideally it will replace the require, but I can not obviously put > a > > method up there (can I?). > > > > Thanks, > > > > Fletch. > > _______________________________________________ > > Wtr-general mailing list > > [email protected] > > http://rubyforge.org/mailman/listinfo/wtr-general > > > _______________________________________________ > Wtr-general mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/wtr-general > _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
