method

def_singleton_delegator

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: SingleForwardable

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_8_7_330) is shown here.

def_singleton_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.

See the example at forwardable.rb.

Show source
Register or log in to add new notes.