Delx v2.0.0 Delx.Delegator behaviour View Source

A module that defines the function that a custom delegator module has to implement.

A delegator only contains an apply/3 function that takes the delegation source as first argument, delegation target as second argument and the forwarded arguments list as third argument.

Link to this section Summary

Types

A tuple that contains a module and function name as atom.

Callbacks

A callback that needs to be implemented by a delegator.

Link to this section Types

Link to this type

mf() View Source
mf() :: {module(), fun :: atom()}

A tuple that contains a module and function name as atom.

Link to this section Callbacks

Link to this callback

apply(source, target, args) View Source
apply(source :: mf(), target :: mf(), args :: [any()]) :: any()

A callback that needs to be implemented by a delegator.