github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jonleighton / delegate_with_default

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 4
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Rails plugin to add a :default option to the delegate method — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Initial import 
jonleighton (author)
Wed Sep 03 04:36:09 -0700 2008
commit  b124c356ade4d28219743b1bee685fde2414b058
tree    d38a51d5a7737b8665ed80bf323acb2cad413a7d
delegate_with_default /
name age
history
message
file MIT-LICENSE Loading commit data...
file README.textile
file Rakefile
file init.rb
file install.rb
directory lib/
directory tasks/
directory test/
file uninstall.rb
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.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server