blob: f70ac1a9955af463ee81bb86e47c2443210f7a89 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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
end
end
|