Ruby is an interpreted language, therefore Ruby code is not compiled to any binary form, and usually just ships as text. You may want to hide the source code you wrote, to protect what the silly lawyers call Intellectual Property.
RubyCocoa doesn't provide a way to do this. But there are multiple ways of encrypting the source code.
First you could just do an obfuscation phase, which means to intentionally change the code to make it hard to read, and therefore to understand. We are not aware of any Ruby code obfuscation tool though (if you know one, please tell us).
You can also simply encrypt all the source code in some file and at runtime decrypt and evaluate it. The evident problem is that any person with a minimum of knowledge will be able to hijack your program, for example in a debugger, and get the clear version of the code. You could however use an asymmetric encryption algorithm, and give the decryption key to your users.
There is also another approach that consists of replacing your Ruby code by a C file, which basically contains direct calls to the Ruby runtime. The ruby2c∞ project should do this. This makes the reverse engineering of your code harder, but still not impossible.
RubyCocoa doesn't provide a way to do this. But there are multiple ways of encrypting the source code.
First you could just do an obfuscation phase, which means to intentionally change the code to make it hard to read, and therefore to understand. We are not aware of any Ruby code obfuscation tool though (if you know one, please tell us).
You can also simply encrypt all the source code in some file and at runtime decrypt and evaluate it. The evident problem is that any person with a minimum of knowledge will be able to hijack your program, for example in a debugger, and get the clear version of the code. You could however use an asymmetric encryption algorithm, and give the decryption key to your users.
There is also another approach that consists of replacing your Ruby code by a C file, which basically contains direct calls to the Ruby runtime. The ruby2c∞ project should do this. This makes the reverse engineering of your code harder, but still not impossible.