Skip to content
instance method

SingleForwardable#def_single_delegator

(::interned accessor, ::Symbol method, ?::Symbol ali) -> void
def_single_delegator(accessor, method, new_name=method)

Defines a method method which delegates to accessor (i.e. it calls the method of the same name in accessor). If new_name is provided, it is used as the name for the delegate method. Returns the name of the method defined.