Sha256: eef9f4f6fbce9ac091145af0b7691fb2b4d1313521a240ab71f4b1907946e1ab

Contents?: true

Size: 264 Bytes

Versions: 1

Compression:

Stored size: 264 Bytes

Contents

require 'levenshtein'

module Middleman
  module Blog
    module Similar
      module Engines
        class Levenshtein < Base
          def distance(a)
            ::Levenshtein.distance(article.body, a.body)
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
middleman-blog-similar-1.0.0 lib/middleman-blog-similar/engines/levenshtein.rb