From: Joey Date: 2006-07-24T20:49:05+09:00 Subject: Re: Autoloading objects — Ruby equivalent for PHP5 "__autoload ------=_Part_57684_30898909.1153741743683 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline check out http://www.ruby-doc.org/core/classes/Kernel.html#M002963 its clos= e to what you want. ActiveSupport is a gem which does autoloading, but it may be specific in th= e way it does it. j`ey http://www.eachmapinject.com On 7/24/06, Naum T. wrote: > > Does there exist a Ruby equivalent to PHP5 "magic" __autoload method > that spares the developer from detailing a list of "require" statements? > http://us2.php.net/autoload > > Or is this something that a homebrewed solution is necessary? Like > catching the exception and testing for file existence, etc.=85 or is ther= e > a gem/extension featuring this functionality? > > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_57684_30898909.1153741743683--