Class: TTY::ProgressBar::CurrentFormatter Private
- Inherits:
-
Object
- Object
- TTY::ProgressBar::CurrentFormatter
- Defined in:
- lib/tty/progressbar/formatter/current.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 :current token
Instance Method Summary collapse
-
#call(value) ⇒ Object
Format :current token.
Instance Method Details
#call(value) ⇒ Object
Format :current token
17 18 19 |
# File 'lib/tty/progressbar/formatter/current.rb', line 17 def call(value) value.gsub(matcher, @progress.current.to_s) end |