Skip to content

Commit 6c92e3c

Browse files
committed
rb: docs + style fixes
1 parent 17b69a8 commit 6c92e3c

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

RubyScript/rb/knime.rb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515
java_import org.knime.core.data.container.BlobSupportDataRow
1616
java_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
1821
module 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

0 commit comments

Comments
 (0)