Sha256: a164452b5c2673d528e587b1e5a73c32ab1c829ae9cd1b1abd4d20532e6bad92

Contents?: true

Size: 240 Bytes

Versions: 5

Compression:

Stored size: 240 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lazar-1.2.1 lib/algorithm.rb
lazar-1.2.0 lib/algorithm.rb
lazar-1.1.3 lib/algorithm.rb
lazar-1.1.0 lib/algorithm.rb
lazar-1.0.1 lib/algorithm.rb