invokeIfOverrides

inline fun <T : Any> T.invokeIfOverrides(methodName: String, block: (T) -> Unit): Boolean

Invokes the given block if the receiver overrides the supplied method.

Return

If the block was invoked.

Parameters

T

The type of the receiver.

methodName

The name of the method to check for.

block

The block to invoke.