Skip to content

Commit d7acd2a

Browse files
committed
rdoc: added 2x2 example
1 parent 8344d9d commit d7acd2a

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

RubyScript/rb/README.rdoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,19 @@ data of the node.
2222
$out_data_0 << row
2323
end
2424

25+
26+
== Copy existing rows from all inputs
27+
This example is applicated for Ruby Script 2x2. Note: all inputs
28+
and outputs are accessible by names like $in_data_X, $out_data_X or
29+
by number in appropriate array $output_datatable_arr, $input_datatable_arr.
30+
31+
(0..1).each do |i|
32+
out = $output_datatable_arr[i]
33+
$input_datatable_arr[i].each do |row|
34+
out << row
35+
end
36+
end
37+
2538
== Add new two columns with String and Int types
2639
This example also illustrates the progress state updating.
2740

0 commit comments

Comments
 (0)