summaryrefslogtreecommitdiff
path: root/lib/algorithm.rb
blob: 0e4b93a9207b7441d72b18f3d4d8b73bdaf36c30 (plain)
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