Skip to main content

Argumentos

any
obrigatório
Value cujo methods é inspecionado com raw metafield lookup.
string
obrigatório
Metafield name passado para raw metafield lookup.
function
obrigatório
Function passada para hookfunction como replacement da found metamethod function.

Retornos

function
Cloned original metamethod closure retornada por hookfunction.

Exemplo

Hook an existing metamethod function.