Sha256: 7b36fb646f9b459c2fc30d094a518a1191236c10d2895eae8f2435f449375e57

Contents?: true

Size: 280 Bytes

Versions: 20

Compression:

Stored size: 280 Bytes

Contents

module Dply
  module Strategy

    def self.load(config, options)
      require_relative "strategy/#{config.strategy}"
      const = "::Dply::Strategy::#{config.strategy.capitalize}"
      const = Module.const_get(const)
      return const.new(config, options)
    end

  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
dply-0.1.19 lib/dply/strategy.rb
dply-0.1.18 lib/dply/strategy.rb
dply-0.1.17 lib/dply/strategy.rb
dply-0.1.13 lib/dply/strategy.rb
dply-0.1.12 lib/dply/strategy.rb
dply-0.1.11 lib/dply/strategy.rb
dply-0.1.10 lib/dply/strategy.rb
dply-0.1.9 lib/dply/strategy.rb
dply-0.1.8 lib/dply/strategy.rb
dply-0.1.7 lib/dply/strategy.rb
dply-0.1.6 lib/dply/strategy.rb
dply-0.1.5 lib/dply/strategy.rb
dply-0.1.4 lib/dply/strategy.rb
dply-0.1.2 lib/dply/strategy.rb
dply-0.1.1 lib/dply/strategy.rb
dply-0.1.0 lib/dply/strategy.rb
dply-0.0.8 lib/dply/strategy.rb
dply-0.0.7 lib/dply/strategy.rb
dply-0.0.5 lib/dply/strategy.rb
dply-0.0.2 lib/dply/strategy.rb