method
def_single_delegator
v1_9_3_125 -
Show latest stable
- Class:
SingleForwardable
def_single_delegator(accessor, method, ali = method)public
Defines a method method which delegates to obj (i.e. it calls the method of the same name in obj). If new_name is provided, it is used as the name for the delegate method.