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 Loading commit data...
file Rakefile
file init.rb
file install.rb Wed Sep 03 04:36:09 -0700 2008 Initial import [jonleighton]
directory lib/
directory tasks/
directory test/
file uninstall.rb

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.