getMethods static method
Implementation
static Map<String, Function> getMethods(Invokable obj) {
try {
Map<String, Function> rtn = obj.methods();
if (obj is HasController) {
rtn.addAll((obj as HasController).controller.getBaseMethods());
}
return rtn;
} catch (e) {
//we ignore this, there is no point at this stage to throw an error
}
return {};
}