Why not put all those files into a gem? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bach Le Sent: Wednesday, May 30, 2007 10:30 AM To: [email protected] Subject: Re: [Wtr-general] 'Require' Lots Of Files
What I do is if I have to require a certain set of files repeatedly, I just place it in another .rb file and require that .rb file which will in turn require all of the files you need. So I would define a file called requirements.rb and then inside that file place require 'xxxxx' require 'yyyyy' require 'zzzzz' and in the ruby script i'm running, put require 'requirements.rb' or something that way you don't require files you don't need _______________________________________________ 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
