title: Iterate every two elements in ruby for loop
body: <p>How do you create a for loop like </p>
  
  <pre><code>for (int x=0; x&lt;data.length; x+=2) 
  </code></pre>
  
  <p>in ruby? I want to iterate through an array but have my counter increment by two instead of one.</p>