public
Description: Rails plugin to add a :default option to the delegate method
Homepage:
Clone URL: git://github.com/jonleighton/delegate_with_default.git
name age message
file MIT-LICENSE Wed Sep 03 04:36:09 -0700 2008 Initial import [jonleighton]
file README.textile Wed Sep 03 04:36:09 -0700 2008 Initial import [jonleighton]
file Rakefile Wed Sep 03 04:36:09 -0700 2008 Initial import [jonleighton]
file init.rb Wed Sep 03 04:36:09 -0700 2008 Initial import [jonleighton]
file install.rb Wed Sep 03 04:36:09 -0700 2008 Initial import [jonleighton]
directory lib/ Wed Sep 03 04:36:09 -0700 2008 Initial import [jonleighton]
directory tasks/ Wed Sep 03 04:36:09 -0700 2008 Initial import [jonleighton]
directory test/ Wed Sep 03 04:36:09 -0700 2008 Initial import [jonleighton]
file uninstall.rb Wed Sep 03 04:36:09 -0700 2008 Initial import [jonleighton]
README.textile

Delegate with Default

This Rails plugin redefines the Module#delegate method to allow a :default option.
If the object we are delegating to is nil, the default will be returned instead of an
exception being raised. See the blog post.