Calling a Jade method from a 'Method' object
Posted: Tue Jul 03, 2012 11:38 am
I have reason to call a jade method on an object when all I have is the name of a method in a string form (I am using Jade 6.3)
Now I know I can get a reference to a Method object by doing a 'method := object.class.getMethodInHTree("methodName");
And I know I can also use the Async Method framework to call a method I know the name of, but the framework seems to be overkill for what I need.
So is a way for me to call the method directly?
As an aside, I am struggling to find info about the 'Method' object in the Jade documention too, so is it there but I am just missing it, or is not there?
Thanks
Roland
Now I know I can get a reference to a Method object by doing a 'method := object.class.getMethodInHTree("methodName");
And I know I can also use the Async Method framework to call a method I know the name of, but the framework seems to be overkill for what I need.
So is a way for me to call the method directly?
As an aside, I am struggling to find info about the 'Method' object in the Jade documention too, so is it there but I am just missing it, or is not there?
Thanks
Roland