Oh I understand now. We had a recent discussion somewhere about this (adding functions) and how the DC extension classes are not setup to do this easily and safely.
Unfortunately, creating your own function would modify the global
DCFunctionsV1 class. This class is part of the proprietary and closed source Dynamic Components extension. Modifying Ruby Base classes or SketchUp API classes is not allowed.
So I do not feel comfortable publicly posting modifications to the DC extension or it’s classes. (And I may not be allowed to per the Trimble API agreement.)
If your extension were to modify the DC extension it would not be accepted into the Extension Warehouse.
If you published component files that used non-native dynamic functions, these files could be rejected by the 3D Warehouse.
If you are doing it for your own “in house” use, that might be okay, but it also could release Trimble from any warranty regarding the use of the Dynamic Components extension.
There are some old posts at SketchUcation where others have posted hacks to add custom functions.
So at this time you need to decide your course based upon your end goals.
(1) Is your desired custom function something that could benefit everyone ?
(2) Perhaps there is another way to get the functionality your extension needs in another way?