lib/algorithm.rb in lazar-1.0.0 vs lib/algorithm.rb in lazar-1.0.1
- old
+ new
@@ -1,8 +1,9 @@
module OpenTox
module Algorithm
+ # Execute an algorithm with parameters
def self.run algorithm, parameters=nil
klass,method = algorithm.split('.')
Object.const_get(klass).send(method,parameters)
end