title: Trying to remove elements in an array : Ruby
body: <p>I'm working on a Codewar challenge in Ruby to remove elements from a array of strings. So far I have tried using the <code>Array.delete_at(Array.index(value))</code> which is meant to remove the first occurrence of a repeating value from the array however that did not work. I believe I may need to combine that with something else but not sure what.</p>
  <p>these are what my tests currently look like when I run them:</p>
  <pre><code>Expected: [&quot;Hello&quot;, &quot;Hello Again&quot;], instead got: [&quot;Hello&quot;]
  Expected: [1, 3, 5, 7, 9], instead got: [1]
  Test Passed: Value == [[1, 2]]
  Test Passed: Value == [[&quot;Goodbye&quot;]]
  Test Passed: Value == []
  </code></pre>
  <p>so far I'm using the <code>.shift</code> method, and that seems to have done half the job. any suggestions on how I can target the whole substring.</p>
  <pre><code>def remove_every_other(arr)
    arr.shift(1) 
  end
  </code></pre>
  <p>for more clarification please find the practise tests and link to the Kata below:
  <a href="https://www.codewars.com/kata/5769b3802ae6f8e4890009d2/train/ruby" rel="nofollow noreferrer">https://www.codewars.com/kata/5769b3802ae6f8e4890009d2/train/ruby</a></p>
  <pre><code>Test.describe(&quot;Basic tests&quot;) do
    Test.assert_equals(remove_every_other(['Hello', 'Goodbye', 'Hello Again']),['Hello', 'Hello Again'])
    Test.assert_equals(remove_every_other([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]),[1, 3, 5, 7, 9])
    Test.assert_equals(remove_every_other([[1, 2]]), [[1, 2]])
    Test.assert_equals(remove_every_other([['Goodbye'], {'Great': 'Job'}]), [['Goodbye']])
    Test.assert_equals(remove_every_other([]), [])
  end
  </code></pre>