Sha256: 78b66389fc51bb07fb6581ee72975c3c5fe7df18a8b59a394fe10227d005f9c5

Contents?: true

Size: 241 Bytes

Versions: 8

Compression:

Stored size: 241 Bytes

Contents

module Laboratory
  module Algorithms
    ALGORITHMS = [
      Laboratory::Algorithms::Random
    ].freeze

    def self.to_class(algorithm_id)
      ALGORITHMS.find { |algorithm_class| algorithm_class.id == algorithm_id }
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
laboratory-0.1.7 lib/laboratory/algorithms.rb
laboratory-0.1.6 lib/laboratory/algorithms.rb
laboratory-0.1.5 lib/laboratory/algorithms.rb
laboratory-0.1.4 lib/laboratory/algorithms.rb
laboratory-0.1.3 lib/laboratory/algorithms.rb
laboratory-0.1.2 lib/laboratory/algorithms.rb
laboratory-0.1.1 lib/laboratory/algorithms.rb
laboratory-0.1.0 lib/laboratory/algorithms.rb