From: patrick-may@... (Patrick May) Date: 2002-04-26T06:56:54+09:00 Subject: require 'aDir' Has this been discussed in the past? setting Kernel.require to recursively require a dir if passed a directory, as in: require 'aDir' This would load all libraries within 'aDir', as if you did something like: def recursive_require( filename ) if File.stat(filename).directory? Dir[filename].entries.each { |entry| recursive_require( entry ) } else require filename end end Does this sound stinky, or nice? Note that the above code doesn't work, there's a some fiddling with the prefixes that would be necessary, as well as dealing with the different library dirs in $: I just threw it in to get the idea across. ~ Patrick