During coding I came up to the point where I needed to figure whether the selected object is a sublcass of a class. I mean like Sketchup.active_model.select_tool only accepts subclasses, right? And it only works if the tool includes some of its methods, such as onMouseMove.
I can predict how it works. Maybe it uses @selected_tool.include?(certain_method), If method not inclduded, then the tool jst ignores the callback to current message. But with this assumption the ...select_tool method will also accept anything, but not nil, as it describes in the API description.
Is there a way to actually know whether the selected tool is actually a subclass of a class?

Wow, wow, wow, yahooooooooooooooooo1!!!!!!



