Class: Mongify::ReversedProgressBar

Inherits:
ProgressBar show all
Defined in:
lib/mongify/progressbar.rb

Overview

Same as progress bar but this counts the progress backwards from 100% to 0

Constant Summary

Constants inherited from ProgressBar

ProgressBar::VERSION

Instance Attribute Summary

Attributes inherited from ProgressBar

#current, #start_time, #title, #total

Instance Method Summary collapse

Methods inherited from ProgressBar

#clear, #file_transfer_mode, #finish, #finished?, #format=, #format_arguments=, #halt, #inc, #initialize, #inspect, #set

Constructor Details

This class inherits a constructor from Mongify::ProgressBar

Instance Method Details

#do_percentageObject

Calculates the percentage



268
269
270
# File 'lib/mongify/progressbar.rb', line 268

def do_percentage
  100 - super
end