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