File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515java_import org . knime . core . data . container . BlobSupportDataRow
1616java_import org . knime . core . data . DataCell
1717
18+ # This module contains utility methods and classes
19+ # for convinient Ruby script writing for KNIME
20+ # See also https://tech.knime.org/javadoc-api
1821module Knime
22+ # This module defines a container for columns for using it in
23+ # style Cell.new.StringCell('str').IntegerCell(123).DoubleCell()...
1924 module CellUtility
2025 def add_cell ( cell )
2126 @cells ||= [ ]
@@ -36,10 +41,11 @@ def add_cell(cell)
3641 end
3742 end
3843
39- # generate an appropriate methods for any types annotated in the output model
44+ # generate an appropriate methods for any types annotated in
45+ # the output model
4046 # name should be a fully qualified Java class name!
4147 $outColumnTypes. each do |name |
42- cls = Java ::JavaClass . for_name ( name )
48+ cls = Java ::JavaClass . for_name ( name )
4349 import cls . to_s
4450 rb_cls = cls . ruby_class
4551 Object . send ( :define_method , cls . simple_name ) do |val |
@@ -49,6 +55,7 @@ def add_cell(cell)
4955 end
5056 end
5157
58+ # Instances of this class are intended for a columns container.
5259 class Cells
5360 include CellUtility
5461
You can’t perform that action at this time.
0 commit comments