Name

SimpleDelegator — Simple concrete Delegator pattern class

Synopsis

This class allows for easy implementation of the Delegator design pattern.

Required Library

require ‘delegate’

Inherited Class

Delegator

Class Method

SimpleDelegator::new(obj)

Creates an object that forwards methods to obj

Instance Method

_ _setobj_ _

Sets the object to which methods are forwarded

Get Ruby in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.