Object.zHasMethod
zHasMethod($methodName) -> boolean
Description
Return true or false if the object has the given method.
class MyClass {
fun myMethod($color) {
...
}
}
$object = MyClass()
$object.zHasMethod('myMethod') //= true
$object.zHasMethod('otherMethod') //= false