I successfully passed this lesson with this :
puts "Tell me something"
text = gets.chomp
puts "What do you want to hide ?"
redact = gets.chomp
words = text.split(" ")
words.each do |word|
if word == redact
print "REDACTED "
print word + " "
But I want to apply this as well "How could you make your program take multiple, separate words to REDACT?"
and I was thinkin' of calling a split method on the string redact so that i can have an array of the user input words that he wants to hide but I just don't know how to hide those inputs all at once... any advice ?