title: Ruby method doesn't seem to work
body: <p>I have a ruby script in which I would like to encapsulate variable initialization/reset in a method. I created the below method for variable resetting. 
  But in irb, this method runs fine but when I print the variables after running the method like this: <code>initer</code>. It didnt do the job. </p>
  
  <pre><code>def intiter
    cntr = 0
    rec = 0
    timer = 0
  end
  </code></pre>