class TTY::ProgressBar::RateFormatter
Used by {Pipeline} to format :rate token
@api private
Public Instance Methods
call(value)
click to toggle source
Format :rate token
@param [String] value
the value being formatted
@api public
# File lib/tty/progressbar/formatter/rate.rb, line 20 def call(value) formatted = Converter.to_seconds(@progress.rate) value.gsub(matcher, formatted) end