Sha256: ec792472e0ce155e265b07853e470a0f0de60c4007aaa7689b25e8786002c544

Contents?: true

Size: 277 Bytes

Versions: 53

Compression:

Stored size: 277 Bytes

Contents

module Cacher

  # Uses a logarithmic algorithm as default.
  #
  class WeightsGenerator < Generator

    # Generate a weights index based on the given index.
    #
    def generate strategy = Weights::Logarithmic.new
      strategy.generate_from self.index
    end

  end

end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
picky-1.4.1 lib/picky/cacher/weights_generator.rb
picky-1.4.0 lib/picky/cacher/weights_generator.rb
picky-1.3.4 lib/picky/cacher/weights_generator.rb
picky-1.3.3 lib/picky/cacher/weights_generator.rb
picky-1.3.2 lib/picky/cacher/weights_generator.rb
picky-1.3.1 lib/picky/cacher/weights_generator.rb
picky-1.3.0 lib/picky/cacher/weights_generator.rb
picky-1.2.4 lib/picky/cacher/weights_generator.rb
picky-1.2.3 lib/picky/cacher/weights_generator.rb
picky-1.2.2 lib/picky/cacher/weights_generator.rb
picky-1.2.1 lib/picky/cacher/weights_generator.rb
picky-1.2.0 lib/picky/cacher/weights_generator.rb
picky-1.1.7 lib/picky/cacher/weights_generator.rb
picky-1.1.6 lib/picky/cacher/weights_generator.rb
picky-1.1.5 lib/picky/cacher/weights_generator.rb
picky-1.1.4 lib/picky/cacher/weights_generator.rb
picky-1.1.3 lib/picky/cacher/weights_generator.rb
picky-1.1.2 lib/picky/cacher/weights_generator.rb
picky-1.1.1 lib/picky/cacher/weights_generator.rb
picky-1.1.0 lib/picky/cacher/weights_generator.rb