Ruby SingleForwardable Functions
EditRocket provides the following information on SingleForwardable functions in the Ruby source code builder.
def_delegator(accessor, method, ali = method) - "Alias for #def_singleton_delegator"
def_delegators(accessor, *methods) - "Alias for #def_singleton_delegators"
def_singleton_delegator(accessor, method, ali = method) - 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.
def_singleton_delegators(accessor, *methods) - "Shortcut for defining multiple delegator methods, but with no provision for using a different name. The following two code samples have the same effect:"