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=A0am, Alexey Petrushin <axy... / gmail.com> wrote:
> For some time I used it in my projects and yesterday release it as
> standalone gem, docs are herehttp://github.com/alexeypetrushin/class-load=
er
>
> Let's say you have some applicaton
>
> =A0 /your_app
> =A0 =A0 =A0 /lib
> =A0 =A0 =A0 =A0 =A0 /animals
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 /dog.rb
> =A0 =A0 =A0 =A0 =A0 /zoo.rb
>
> instead of
>
> =A0 require 'animals/dog'
> =A0 require 'app'
>
> you just write
>
> =A0 require 'class_loader'
> =A0 autoload_dir '/your_app/lib'
>
> =A0 Zoo.add Animals::Dog.new # <=3D all classes loaded automatically
> --
> Posted viahttp://www.ruby-forum.com/.