lib/picky/generators/partial_generator.rb in picky-2.7.0 vs lib/picky/generators/partial_generator.rb in picky-3.0.0.pre1

- old
+ new

@@ -1,14 +1,18 @@ -module Generators +module Picky - # The partial generator uses a subtoken(downto:1) generator as default. - # - class PartialGenerator < Base + module Generators - # Generate a partial index based on the given inverted index. + # The partial generator uses a subtoken(downto:1) generator as default. # - def generate strategy = Partial::Substring.new(from: 1) - strategy.generate_from self.inverted + class PartialGenerator < Base + + # Generate a partial index based on the given inverted index. + # + def generate strategy = Partial::Substring.new(from: 1) + strategy.generate_from self.inverted + end + end end end \ No newline at end of file