class TTY::ProgressBar::ByteFormatter
Used by {Pipeline} to format :byte and :current_byte tokens
@api private
Public Instance Methods
call(value)
click to toggle source
Format :current_byte token
@param [String] value
the value to format
@api public
# File lib/tty/progressbar/formatter/current_byte.rb, line 20 def call(value) bytes = Converter.to_bytes(@progress.current) value.gsub(matcher, bytes) end