title: Ruby code for deleting the vowels in a string
body: <p>I'm trying to write code in Ruby that removes all the vowels from a string:</p>
  
  <pre><code>def remvowel(string)
    i = 0
    dv_string = []
    while i &lt; string.length
      if (string[i] != "a" || string[i] != "e" || string[i] != "i" || string[i] != "o" || string[i] != "u")
        dv_string.push(i)
        i += 1
      end
      i += 1
    end
    return dv_string.join
  end
  </code></pre>
  
  <p>But it's not coming out right. When I run <code>remvowel("duck")</code>, it returns <code>"02"</code>, as in the index positions of <code>"dc"</code>. I'm missing something, but I don't know what.</p>