Ruby Forwardable Functions

EditRocket provides the following information on Forwardable functions in the Ruby source code builder.

def_delegator(accessor, method, ali = method) - "Alias for #def_instance_delegator"

def_delegators(accessor, *methods) - "Alias for #def_instance_delegators"

def_instance_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_instance_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:"