Skip to content

Commit b739b06

Browse files
committed
Updated global variables. Now in Ruby style. Added arrays of input and output tables
1 parent a56812a commit b739b06

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

RubyScript/rb/knime.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ def [](idx)
121121
end
122122

123123
def snippet_runner
124-
count, step = $inData0.length, 0x2FF
124+
count, step = $in_data_0.length, 0x2FF
125125
coef = step / count.to_f
126-
$inData0.each_with_index do |row, i|
127-
$outContainer0 << (yield row)
126+
$in_data_0.each_with_index do |row, i|
127+
$out_data_0 << (yield row)
128128
setProgress "#{i * coef}%" if (i & step) == 0
129129
end
130130
end

0 commit comments

Comments
 (0)