User Guide
Ruby Component
Declaration Persistence
The Ruby interpreter is running constantly. Because of this any declared classes, global or instance variables and constants will remain
declared even if you delete the code for them. Currently the only way to flush all the declarations is to save your schematic and restart
FlowBotics Studio.
Gems
All seasoned Rubyists will know about Gems. These are packaged libraries of code that you can install and use to extend Ruby beyond its
standard capabilities.
If you have a Gem you want to use with FlowBotics Studio then if it is implemented in pure Ruby you should have no problem using it. You
will need to place the ruby files for the gem in a folder and then reference that folder when you write your 'require' statement. You could also
put it in the FlowBotics Studio install folder under “ruby/libraries”.
If your Gem is written partly or wholly in C then it needs to be (or have been) compiled using Visual Studio in order for it to work with
FlowBotics Studio. If it has been compiled with mingw (as many Windows gems are) it is unlikely to work.
The same distribution issues apply to gems as for the standard libraries. If you decide to export your creation and it uses a gem then you
need to distribute the gem alongside it. You must also make sure that the paths to the gem are all taken care of or it won't load.
171 of 212