# File lib/formatador/progressbar.rb, line 3 def redisplay_progressbar(current, total, options = {}) options = { :color => 'white', :width => 50, :new_line => true }.merge!(options) data = progressbar(current, total, options) if current < total redisplay(data) else redisplay("#{data}") if options[:new_line] new_line end @progressbar_started_at = nil end end