From: "Mauricio Fernández" Date: 2005-11-23T03:44:15+09:00 Subject: Re: There must be a better way -- requiring multiple files On Wed, Nov 23, 2005 at 02:29:16AM +0900, Berger, Daniel wrote: > Could Kernel#require be modified to understand '*' (non-recursive) and > '**' (recursive)? Then you could do: > > require "net/*" # require all .rb files under the net directory > require "net/**" # Same, but recursive > > I seem to recall this being proposed in the past, but I can't remember > the arguments against it. You could add to them that it'd pose some problems with RubyGems' new definition of Kernel#require. -- Mauricio Fernandez