Anyone out there who could tell me what's wrong with my code? I can't seem to figure it out. Cheers!
puts "Type your text here!" text = gets.chomp puts "What would you like redacted?" redact = gets.chomp words = text.split(" ") words.each do |word| if word == redact print "REDACTED" else print word + " " . end end