title: Remove array elements that are present in another array
body: <p>There is a list of words and list of banned words. I want to go through the word list and redact all the banned words. This is what I ended up doing (notice the <code>catched</code> boolean):</p>
  
  <pre class="lang-ruby prettyprint-override"><code>puts "Give input text:"
  text = gets.chomp
  puts "Give redacted word:"
  redacted = gets.chomp
  
  words = text.split(" ")
  redacted = redacted.split(" ")
  catched = false
  
  words.each do |word|
    redacted.each do |redacted_word|
      if word == redacted_word
          catched = true
          print "REDACTED "
          break
      end
    end
      if catched == true
          catched = false
      else
          print word + " "
      end
  end
  </code></pre>
  
  <p>Is there any proper/efficient way?</p>