Class: Translatomatic::ProgressUpdater
- Inherits:
-
Object
- Object
- Translatomatic::ProgressUpdater
- Defined in:
- lib/translatomatic/progress_updater.rb
Overview
implements Converter listener
Instance Method Summary collapse
-
#initialize(progressbar) ⇒ ProgressUpdater
constructor
A new instance of ProgressUpdater.
- #translated_texts(texts) ⇒ Object
- #untranslated_texts(texts) ⇒ Object
Constructor Details
#initialize(progressbar) ⇒ ProgressUpdater
Returns a new instance of ProgressUpdater.
3 4 5 |
# File 'lib/translatomatic/progress_updater.rb', line 3 def initialize() = end |
Instance Method Details
#translated_texts(texts) ⇒ Object
7 8 9 |
# File 'lib/translatomatic/progress_updater.rb', line 7 def translated_texts(texts) .progress += texts.length end |
#untranslated_texts(texts) ⇒ Object
11 12 13 |
# File 'lib/translatomatic/progress_updater.rb', line 11 def untranslated_texts(texts) .total -= texts.length end |