summaryrefslogtreecommitdiff
path: root/lib/algorithm.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/algorithm.rb')
-rw-r--r--lib/algorithm.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/algorithm.rb b/lib/algorithm.rb
new file mode 100644
index 0000000..1b97584
--- /dev/null
+++ b/lib/algorithm.rb
@@ -0,0 +1,12 @@
+module OpenTox
+
+ module Algorithm
+
+ def self.run algorithm, arg1, arg2 #parameters
+ klass,method = algorithm.split('.')
+ Object.const_get(klass).send(method, arg1,arg2)
+ end
+
+ end
+end
+