Project

General

Profile

Actions

Bug #8615

closed

Add examples for SimpleDelegator

Added by calebthompson (Caleb Thompson) almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Assignee:
Target version:
ruby -v:
2.0.0
[ruby-core:55883]

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.

Files

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

Also available in: Atom PDF

Like0
Like0Like0