Zach Dennis wrote:
> Navindra Umanee wrote:
> 
>>
>> Thanks for the tips and insightful commentary to you and Joao.  I'd be
>> interested in seeing the Rails code for recursive require.
>>
> 
> This isn't Rails code, but it's recursive loading code:
> 
> def require( str )
>   if File.exist?( str )
>     Dir["#{str}/**/*.rb"].each do |file|
>       require file[0..-4]
>     end
>   else
>     super
>   end
> end

bah typo snuck in there!! Although it'll still work with the typo. This 
should be:

def require( str )
   if File.directory?( str )
     Dir["#{str}/**/*.rb"].each do |file|
       require file[0..-4]
     end
   else
     super
   end
end

sorry about that,

Zach