class TTY::ProgressBar::TotalFormatter
Used by {Pipeline} to format :total token
@api private
Public Instance Methods
call(value)
click to toggle source
Format :total token
@param [String] value
the value to format
@api public
# File lib/tty/progressbar/formatter/total.rb, line 19 def call(value) display = @progress.indeterminate? ? "-" : @progress.total.to_s value.gsub(matcher, display) end