1 2 3 4 5 6 7 8 9 10 11 12
module OpenTox module Algorithm def self.run algorithm, parameters=nil klass,method = algorithm.split('.') Object.const_get(klass).send(method,parameters) end end end