Class: Translatomatic::ProgressUpdater
- Inherits:
-
Object
- Object
- Translatomatic::ProgressUpdater
- Defined in:
- lib/translatomatic/progress_updater.rb
Overview
Class to update the progress bar for the CLI
Instance Method Summary collapse
-
#initialize(progressbar) ⇒ ProgressUpdater
constructor
Create a new progress updater.
-
#update_progress(count) ⇒ Number
The total number of processed items.
Constructor Details
#initialize(progressbar) ⇒ ProgressUpdater
Create a new progress updater
6 7 8 |
# File 'lib/translatomatic/progress_updater.rb', line 6 def initialize() @progressbar = end |
Instance Method Details
#update_progress(count) ⇒ Number
Returns The total number of processed items.
12 13 14 |
# File 'lib/translatomatic/progress_updater.rb', line 12 def update_progress(count) @progressbar.progress += count end |