lib/wordini.rb in wordini-0.1.0 vs lib/wordini.rb in wordini-0.1.1
- old
+ new
@@ -1,12 +1,12 @@
class Wordini
def self.obfuscate(word_string, words_to_remove)
word_string.split.map{ |word|
if words_to_remove.include? word
- word = "*" * word.split('').count
+ "*" * word.length
else
- word = word
+ word
end
}.join(' ')
end
def self.report(word_string, search_terms)
\ No newline at end of file