The question is not asked using the proper terms.
(1) DISKFILE:
The scrambled file cannot be modified after encryption. File encryption (aka scrambling,) is a disk file protection only. With SketchUp version 2016 and higher, a signature hash is generated for most executable files in the plugin sub-folder. This hash is checked against the files for any changes, and if the files have been changed, then the plugin may not load, depending upon the user's extension load security policy setting.
During extension load, the rbs file is decrypted into plain text Ruby code in memory, and then passed to Ruby for evaluation, IF the extension load policy check was verified.
(2) RUBY OBJECTS:
Ruby is a dynamic programming language.
This means that Ruby objects (like modules and classes,) can be opened for editing during runtime, and modified. Such modifications can be adding, overriding or deleting methods; adding, changing or removing constants pointing at other objects of various kinds; adding or changing variables (instance or class vars); defining entirely new classes and modules, etc.
SO, your plugin is loaded from a scrambled rbs file, which creates some plugin sub-module inside your author/company toplevel module. Inside this there is some functionality accessed via a method call.
Later on, some other file (scrambled or not,) from another one of your plugins, or some statements executed in the Ruby Console, CAN modify the Ruby objects in memory that the previous rbs file created.
But, the modifying code should be sure to first test the Ruby ObjectSpace, for the presence of the Ruby object (usually a module) to modified. A simple if block can do it.
if defined?(BomaStudio;;SomePlugin)
BomaStudio;;SomePlugin.module_eval {
# code to evaluate within your submodule
@@a="my text"
run_my_function(@@a)
}
end
Okay?
There is one caveat. Module and Class definitions can be frozen to prevent runtime modifications, and there is no way to unfreeze objects at runtime. So objects to be modified must not have been frozen.
Follow proper etiquette !
Do not modify the classes and modules of: the Ruby core or standard Libraries; of other authors or companies; and especially the Trimble SketchUp Ruby API.