Subtile Processor provides built-in Ruby modules (through Sourcepole's Delphi component) that contain module functions to enable calling of SP functions from Ruby. Although nothing prevents from using them directly, try not to use them and use the provided classes instead.
Proper care must be taken when passing parameters to these module functions. All functions expect the parameters to be of particular class, they will fail (cause access violations) when the class is other than expected. In most cases the data type is NOT CHECKED before conversion!!! So this is probably another reason to use the provided object framework instead of these modules.
All String values passed from SP to Ruby are encoded in UTF-8 and all values passed from Ruby to SP are expected to be in UTF-8.
All calls of interface functions are logged to the log window (when enabled) in this format:
In the parentheses there is a list of all parameters that the function expects, expressed in this format:
The value is recorded only for some classes: