lib/picky/generators/similarity/soundex.rb in picky-2.7.0 vs lib/picky/generators/similarity/soundex.rb in picky-3.0.0.pre1

- old
+ new

@@ -1,25 +1,29 @@ -# encoding: utf-8 -# -module Generators +module Picky - module Similarity + # encoding: utf-8 + # + module Generators - # It's actually a combination of soundex - # and Levenshtein. - # - # It uses the soundex to get similar words - # and ranks them using the levenshtein. - # - class Soundex < Phonetic + module Similarity - # Encodes the given symbol. + # It's actually a combination of soundex + # and Levenshtein. # - # Returns a symbol. + # It uses the soundex to get similar words + # and ranks them using the levenshtein. # - def encoded sym - code = Text::Soundex.soundex sym.to_s - code.to_sym if code + class Soundex < Phonetic + + # Encodes the given symbol. + # + # Returns a symbol. + # + def encoded sym + code = Text::Soundex.soundex sym.to_s + code.to_sym if code + end + end end end \ No newline at end of file