lib/picky/generators/weights_generator.rb in picky-2.7.0 vs lib/picky/generators/weights_generator.rb in picky-3.0.0.pre1
- old
+ new
@@ -1,14 +1,18 @@
-module Generators
+module Picky
- # Uses a logarithmic algorithm as default.
- #
- class WeightsGenerator < Base
+ module Generators
- # Generate a weights index based on the given inverted index.
+ # Uses a logarithmic algorithm as default.
#
- def generate strategy = Weights::Logarithmic.new
- strategy.generate_from self.inverted
+ class WeightsGenerator < Base
+
+ # Generate a weights index based on the given inverted index.
+ #
+ def generate strategy = Weights::Logarithmic.new
+ strategy.generate_from self.inverted
+ end
+
end
end
end
\ No newline at end of file