User Guide

Ruby Component
Input Data
Data that arrives at a Ruby component is stored in an instance variable called @ins. This is a Ruby array and it stores the last value to arrive
at each input.
You can look at this by simply typing it into the component. Note that instance variables are coloured gold in the code editor.
To access the value at any input use the Ruby Array element reference []. Values are zero indexed so to get the value at the second input
use @ins[1].
It's quite common to have only one input so we've added another instance variable called @in that references this first input value directly.
Input Labels
If you set a label for your input then this is automatically translated into an instance variable that you can use within your Ruby code.
Note that as the variable is an instance variable it must be preceded with the @ symbol.
Output Data
As well as receiving data from FlowBotics Studio you can of course send data out. To do this use the output method.
104 of 212