addMethods

fun addMethods(instance: Any, methodName: String)

look for all named methods of the instance's class and add them to the list of methods that can be dispatched.

Parameters

instance

the instance whose class provides the method definitions.

methodName

the name of the methods to be looked for.