From: Tony Arcieri Date: 2010-10-14T06:12:27+09:00 Subject: Re: Automatic ClassLoader (to eliminate 'require') --001485f2d0d6c591010492860c32 Content-Type: text/plain; charset=ISO-8859-1 Also MagicLoader, my almost-complete code loading counterpart to Bundler, which is based on require_all: http://github.com/tarcieri/magicloader There are still a few edge cases it's broken for, but it's almost ready for production use. On Wed, Oct 13, 2010 at 2:51 PM, Jarmo Pertman wrote: > 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/. > > > -- Tony Arcieri Medioh! A Kudelski Brand --001485f2d0d6c591010492860c32--