method

def_single_delegators

Importance_1
def_single_delegators(accessor, *methods) public

Shortcut for defining multiple delegator methods, but with no provision for using a different name. The following two code samples have the same effect:

def_delegators :@records, :size, :<<, :map

def_delegator :@records, :size
def_delegator :@records, :<<
def_delegator :@records, :map
Show source
Register or log in to add new notes.