Bug #8615

Add examples for SimpleDelegator

Added by Caleb Thompson 9 months ago. Updated 9 months ago.

[ruby-core:55883]
Status:Closed
Priority:Normal
Assignee:Zachary Scott
Category:doc
Target version:2.1.0
ruby -v:2.0.0 Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN

Description

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.

0001-Add-examples-for-SimpleDelegator.patch Magnifier (1.71 KB) Caleb Thompson, 07/10/2013 03:41 AM

Associated revisions

Revision 41905
Added by Zachary Scott 9 months ago

  • lib/delegate.rb: Add example for setobj and getobj [Bug #8615] Patch by Caleb Thompson

History

#1 Updated by Eric Hodel 9 months ago

  • Assignee changed from Eric Hodel to Zachary Scott

reassigning to zzak as he has more bandwidth for doc commits.

#2 Updated by Zachary Scott 9 months ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r41905.
Caleb, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • lib/delegate.rb: Add example for setobj and getobj [Bug #8615] Patch by Caleb Thompson

Also available in: Atom PDF