# File lib/luck/progressbar.rb, line 16 def percentage return 0 if @maximum == 0 @value.to_f / @maximum.to_f end