Sha256: f3610fa4ee99a03b5a3bd412561f7afb0246f81bf7ba6c0d408ce96e97608a8f
Contents?: true
Size: 285 Bytes
Versions: 1
Compression:
Stored size: 285 Bytes
Contents
require 'damerau-levenshtein' module Middleman module Blog module Similar module Engines class DamerauLevenshtein < Base def distance(a) ::DamerauLevenshtein.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/damerau_levenshtein.rb |