From: Jarmo Pertman Date: 2010-10-14T05:51:40+09:00 Subject: Re: Automatic ClassLoader (to eliminate 'require') There is also a require_all gem with similar approaches http://github.com/jarmo/require_all Jarmo Pertman ----- IT does really matter - http://www.itreallymatters.net On Oct 10, 5:59 am, Alexey Petrushin wrote: > For some time I used it in my projects and yesterday release it as > standalone gem, docs are herehttp://github.com/alexeypetrushin/class-loader > > Let's say you have some applicaton > >   /your_app >       /lib >           /animals >               /dog.rb >           /zoo.rb > > instead of > >   require 'animals/dog' >   require 'app' > > you just write > >   require 'class_loader' >   autoload_dir '/your_app/lib' > >   Zoo.add Animals::Dog.new # <= all classes loaded automatically > -- > Posted viahttp://www.ruby-forum.com/.