title: setInterval() equivalent for ruby
body: <p>In JavaScript you can do: </p>
  
  <pre><code>setInterval(func,delay); 
  </code></pre>
  
  <p>I can't seem to find anything on google for what I'm actually looking for.
  Is there a ruby equivalent for this? Thanks in advance. </p>