From: Erik Hollensbe Date: 2008-11-19T19:35:37+09:00 Subject: Re: lazy requires aidy wrote: > Hi, > > Are lazy requires generally a good idea > > def require_files(path) > dir = File.dirname(__FILE__) > Dir[File.expand_path("#{dir}/#{path}")].uniq.each do |file| > require file > end > end It's certainly accepted practice, but with all things you need to ask if it's necessary. If you know the files in the path you want, it's much more reliable to specify them. -- Posted via http://www.ruby-forum.com/.