Class: Mongify::ReversedProgressBar
- Inherits:
-
ProgressBar
- Object
- ProgressBar
- Mongify::ReversedProgressBar
- 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
Instance Attribute Summary
Attributes inherited from ProgressBar
#current, #start_time, #title, #total
Instance Method Summary collapse
-
#do_percentage ⇒ Object
Calculates the percentage.
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_percentage ⇒ Object
Calculates the percentage
268 269 270 |
# File 'lib/mongify/progressbar.rb', line 268 def do_percentage 100 - super end |