class TTY::ProgressBar::ElapsedFormatter

Used by {Pipeline} to format :elapsed token

@api private

Public Instance Methods

call(value) click to toggle source

Format :elapsed token

@param [String] value

the value to format

@api public

# File lib/tty/progressbar/formatter/elapsed.rb, line 20
def call(value)
  value.gsub(matcher, Converter.to_time(@progress.elapsed_time))
end