Sha256: b05c811c7f47cd83e02bccb3408375a989e89deda0cb6b71dea3502174629e58

Contents?: true

Size: 506 Bytes

Versions: 34

Compression:

Stored size: 506 Bytes

Contents

module Picky

  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

34 entries across 34 versions & 1 rubygems

Version Path
picky-3.5.3 lib/picky/generators/similarity/none.rb
picky-3.5.2 lib/picky/generators/similarity/none.rb
picky-3.5.1 lib/picky/generators/similarity/none.rb
picky-3.5.0 lib/picky/generators/similarity/none.rb
picky-3.4.3 lib/picky/generators/similarity/none.rb
picky-3.4.2 lib/picky/generators/similarity/none.rb
picky-3.4.1 lib/picky/generators/similarity/none.rb
picky-3.4.0 lib/picky/generators/similarity/none.rb
picky-3.3.3 lib/picky/generators/similarity/none.rb
picky-3.3.2 lib/picky/generators/similarity/none.rb
picky-3.3.1 lib/picky/generators/similarity/none.rb
picky-3.3.0 lib/picky/generators/similarity/none.rb
picky-3.2.0 lib/picky/generators/similarity/none.rb
picky-3.1.13 lib/picky/generators/similarity/none.rb
picky-3.1.12 lib/picky/generators/similarity/none.rb
picky-3.1.11 lib/picky/generators/similarity/none.rb
picky-3.1.10 lib/picky/generators/similarity/none.rb
picky-3.1.9 lib/picky/generators/similarity/none.rb
picky-3.1.8 lib/picky/generators/similarity/none.rb
picky-3.1.7 lib/picky/generators/similarity/none.rb