Applying Ruby Script to Dynamic Components

In order for the recalc_dc method to run, your code needs to call it.
The preamble code should also be within a method.
And both methods should be in a submodule of your unique namespace module.

Time to learn basic Ruby programming. See …