-
-
Notifications
You must be signed in to change notification settings - Fork 131
Finishing
bjmfactory edited this page Nov 18, 2014
·
2 revisions
- See
#finish
above.
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? # => true
progressbar = ProgressBar.create(:starting_at => 9, :total => 10, :autofinish => false)
progressbar.increment
progressbar.finished? # => false