I have a class that contains a number of 'build_*' methods. It is written to be subclassed, so that it can be easily extended. Most extension would be to create new 'build_' methods.
One routine I have written calls the various 'build_' methods based on XML elements. I would like to test and make sure that the method is available before calling it.
I've tried Module::Info, but this actually parses the given module file looking for methods; if the modules has been subclassed, it won't find the new methods. My other inclination is to simply wrap the method call in an eval statement.
So my question is: Is there an easy way of finding out what methods are available to an object? Or is perl way of doing it to test for exceptions?