Sha256: e76420e47d59ca4aa8582545652df99c1dcd0a50c3dfe60775ddb3d855f4ca5a

Contents?: true

Size: 445 Bytes

Versions: 2

Compression:

Stored size: 445 Bytes

Contents

module Generators

  module Similarity

    # Similarity strategy that does nothing.
    #
    class None < Strategy

      # Does not encode text. Just returns nil.
      #
      def encoded text
        nil
      end

      # Returns an empty index.
      #
      def generate_from index
        {}
      end
    
      # Returns if this strategy's generated file is saved.
      #
      def saved?
        false
      end

    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
picky-2.7.0 lib/picky/generators/similarity/none.rb
picky-2.6.0 lib/picky/generators/similarity/none.rb