Class: TTY::ProgressBar::ElapsedFormatter Private
- Inherits:
-
Object
- Object
- TTY::ProgressBar::ElapsedFormatter
- Defined in:
- lib/tty/progressbar/formatter/elapsed.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Used by Pipeline to format :elapsed token
Instance Method Summary collapse
-
#call(value) ⇒ Object
Format :elapsed token.
Instance Method Details
#call(value) ⇒ Object
Format :elapsed token
20 21 22 |
# File 'lib/tty/progressbar/formatter/elapsed.rb', line 20 def call(value) value.gsub(matcher, Converter.to_time(@progress.elapsed_time)) end |