class ProgressBar::Outputs::Tty
Constants
- DEFAULT_FORMAT_STRING
Public Instance Methods
bar_update_string()
click to toggle source
# File lib/ruby-progressbar/outputs/tty.rb, line 15 def bar_update_string bar.to_s end
clear()
click to toggle source
# File lib/ruby-progressbar/outputs/tty.rb, line 10 def clear stream.print clear_string stream.print "\r" end
default_format()
click to toggle source
# File lib/ruby-progressbar/outputs/tty.rb, line 19 def default_format DEFAULT_FORMAT_STRING end
eol()
click to toggle source
# File lib/ruby-progressbar/outputs/tty.rb, line 27 def eol bar.stopped? ? "\n" : "\r" end
resolve_format(other_format)
click to toggle source
# File lib/ruby-progressbar/outputs/tty.rb, line 23 def resolve_format(other_format) other_format || default_format end