lib/progress.rb in progress-3.5.2 vs lib/progress.rb in progress-3.6.0

- old
+ new

@@ -50,9 +50,10 @@ attr_reader :total attr_reader :current attr_reader :title attr_accessor :note + def initialize(total, title) if !total.is_a?(Numeric) && (title.nil? || title.is_a?(Numeric)) total, title = title, total end total = total && total != 0 ? Float(total) : 1.0