Class.addMethod

void addMethod(alias Method)(string name = null) if (isCallable!Method) nothrow

Add a method to a Class.

Parameters

MethodThe method
nameThe JSC name of the method or null to use the D method name (default)