- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 131
Finishing
        Jeff Felchner edited this page Sep 15, 2017 
        ·
        2 revisions
      
    Note: Also see Stopping the Bar
By default, the bar will be finished automatically if the current value ever
becomes equal to the total.  If you do not want the bar to autofinish, pass
:autofinish => false when creating your bar.
progressbar = ProgressBar.create(:starting_at => 9, :total => 10)
progressbar.increment
progressbar.finished? # => trueprogressbar = ProgressBar.create(:starting_at => 9, :total => 10, :autofinish => false)
progressbar.increment
progressbar.finished? # => false