Add examples for SimpleDelegator
SimpleDelegator’s documentation lacked an example of its primary
feature, that it automatically sets the object passed to its initializer
as the delegated object.
- Add implicit setobj example
- Add example showing that super is available as a shortcut to getobj.
- lib/delegate.rb: Add example for setobj and getobj [Bug #8615] Patch by Caleb Thompson
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
#2 Updated by zzak (Zachary Scott) almost 5 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100