title: Any way to reset a variable in ruby to its original value
body: <p>Let's say I declared variable <code>@counter=0</code> in my <code>initialize</code> method, and in some part of my code, I want to reset it again to its original value. Though I can manually do <code>@counter=0</code>, I want to know if there is any way to reset it to its original assigned value. something like example: <code>@counter.reset</code>  </p>
  
  <pre><code>def initialize
    @counter = 0
    ...
  end
  def first
    @some_string.each do |f|
      if f == ''
        @counter += 1 
      end
      @counter = 0 # Want to change it here
    end
  end
  </code></pre>