lib/tty/progressbar.rb
def reset
      @width             = 0 if no_width
      @render_period     = frequency == 0 ? 0 : 1.0 / frequency
      @current           = 0
      @last_render_time  = Time.now
      @last_render_width = 0
      @done              = false
      @stopped           = false
      @start_at          = Time.now
      @started           = false
      @tokens            = {}

      @meter.clear
    end
def reset
      @width             = 0 if no_width
      @render_period     = frequency == 0 ? 0 : 1.0 / frequency
      @current           = 0
      @last_render_time  = Time.now
      @last_render_width = 0
      @done              = false
      @stopped           = false
      @start_at          = Time.now
      @started           = false
      @tokens            = {}

      @meter.clear
    end
Create progress bar

 @param [String] format
   the tokenized string that displays the output

 @param [Hash] options
 @option options [Numeric] :total
   the total number of steps to completion
 @option options [Numeric] :width
   the maximum width for the bars display including
   all formatting options
 @option options [Boolean] :no_width
   true when progression is unknown defaulting to false
 @option options [Boolean] :clear
   whether or not to clear the progress line
 @option options [Boolean] :hide_cursor
   display or hide cursor
 @option options [Object] :output
   the object that responds to print call defaulting to stderr
 @option options [Number] :frequency
   the frequency with which to display bars
 @option options [Number] :interval
   the period for sampling of speed measurement

 @api public
 Reset progress to default configuration

 @api public