class TTY::ProgressBar::CurrentFormatter

Used by {Pipeline} to format :current token

@api private

Public Instance Methods

call(value) click to toggle source

Format :current token

@param [String] value

the value to format

@api public

# File lib/tty/progressbar/formatter/current.rb, line 17
def call(value)
  value.gsub(matcher, @progress.current.to_s)
end