# File lib/ruby-progressbar/progress.rb, line 74 def total=(new_total) unless progress.nil? || new_total.nil? || new_total >= progress fail ProgressBar::InvalidProgressError, "You can't set the item's total value to less than the current progress." end @total = new_total end