User Guide

Ruby Component
Introduction
The Ruby component is by far the most flexible component in the FlowBotics Studio toolbox. It encapsulates the full Ruby language, it allows
passing of data via an efficient time precise event system and it integrates fully with FlowBotics Studio triggered data types, mouse events
and graphics.
The Ruby component can be used for anything from simple equations to complex class libraries, user interaction and graphics rendering. It
really does open up a world of possibilities.
For the rest of this chapter we assume a basic knowledge of the Ruby language which is not covered in this guide. If you want a great
reference we recommend the following site:
http://www.ruby-doc.org/docs/ProgrammingRuby
Overview
The Ruby component is split into two halves. At the top is the Code Editor. Click here and type your Ruby code.
Below the editor is the Output Pane. This area shows any error messages, output from evaluated code and watched data values. You can
change the relative size of the Editor and Output areas by dragging the separator bar.
The On/Off button can be used to prevent the Ruby code from being evaluated. This can be useful if you want to write code that might cause
instability while it is being typed in (while loops are one such example).
99 of 212
On/Off Button
Code Editor
Output Pane