Sha256: df5b83749ca20b4a42146d94560852a8800d13b9573cd19927ec5daea2e3658b

Contents?: true

Size: 518 Bytes

Versions: 24

Compression:

Stored size: 518 Bytes

Contents

module Internals

  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
  
end

Version data entries

24 entries across 24 versions & 1 rubygems

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