From: Roger Pack Date: 2009-07-16T05:09:38+09:00 Subject: Re: require_all 1.0.0: A wonderfully simple way to load your Tony Arcieri wrote: > On Wed, Jul 15, 2009 at 9:58 AM, Roger Pack > wrote: > >> Hmm. I too wish that ruby core had something like >> >> require_relative 'lib/a.rb' >> or require_all 'lib/*.rb' >> or require_all 'lib' => require_all 'lib/*.rb' or require_all >> 'lib/init.rb' >> >> Thoughts? >> > > I really would like to see this in core for one reason: with a pure Ruby > solution it's incredibly difficult if not impossible to play nice with > ActiveSupport's dependencies.rb. Yeah I wish active support would just go away. It seems unstable, even today. So my thought for core would be to suggest either require_relative 'lib/a.rb' or perhaps require 'directory_name' which (like Python) loads directory_name/init.rb or what not. My preference would be advocate require_relative, having never seemed to miss the require 'directory_name' Thoughts? =r -- Posted via http://www.ruby-forum.com/.