I’m coding inside Sketchup seen 5 years now, but I learn by my self. I have still a big doubt about class and module in Sketchup ruby api. I use the Sketchup’s method of extension folder, rbz…
To isolate all my code, I create a module that I call “Adebeo_customerName_pluginName”.
After that all function are code in different file and a different module call “Adebeo_customerName_pluginName_featureName”.
After I extend the main module “…_pluginName” with all the “…_featureName”.
It’s works find but my doubt come when a create class. I create class with the name “Adebeo_customerName_className” without include,extend or anything … I don’t find this very clean because in my opinion this class should be include inside the main module “…_pluginName”.
Every time, I spend 10 minutes to test something to do it’s a fail because this things are not very clear to me.
If you have any advice, please give it to me.