Sha256: e9b5c8c0b9cf77fb80fe04ba9fa2da44e86b433bc65447ef07dfeb23398c5650

Contents?: true

Size: 365 Bytes

Versions: 24

Compression:

Stored size: 365 Bytes

Contents

module Internals

  module Generators

    # The partial generator uses a subtoken(downto:1) generator as default.
    #
    class PartialGenerator < Base
    
      # Generate a partial index based on the given index.
      #
      def generate strategy = Partial::Substring.new(from: 1)
        strategy.generate_from self.index
      end

    end
  
  end
  
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
picky-2.5.2 lib/picky/internals/generators/partial_generator.rb
picky-2.5.1 lib/picky/internals/generators/partial_generator.rb
picky-2.5.0 lib/picky/internals/generators/partial_generator.rb
picky-2.4.3 lib/picky/internals/generators/partial_generator.rb
picky-2.4.2 lib/picky/internals/generators/partial_generator.rb
picky-2.4.1 lib/picky/internals/generators/partial_generator.rb
picky-2.4.0 lib/picky/internals/generators/partial_generator.rb
picky-2.3.0 lib/picky/internals/generators/partial_generator.rb
picky-2.2.1 lib/picky/internals/generators/partial_generator.rb
picky-2.2.0 lib/picky/internals/generators/partial_generator.rb
picky-2.1.2 lib/picky/internals/generators/partial_generator.rb
picky-2.1.1 lib/picky/internals/generators/partial_generator.rb
picky-2.1.0 lib/picky/internals/generators/partial_generator.rb
picky-2.0.0 lib/picky/internals/generators/partial_generator.rb
picky-2.0.0.pre3 lib/picky/internals/generators/partial_generator.rb
picky-2.0.0.pre2 lib/picky/internals/generators/partial_generator.rb
picky-2.0.0.pre1 lib/picky/internals/generators/partial_generator.rb
picky-1.5.4 lib/picky/internals/generators/partial_generator.rb
picky-1.5.3 lib/picky/internals/generators/partial_generator.rb
picky-1.5.2 lib/picky/internals/generators/partial_generator.rb