class ProgressBar

Defined in:

grab/utils/progress_bar.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(total : UInt64 = 100_u64, step : UInt64 = 1_u64, width : UInt64 = 100_u64, complete : String = "▓", incomplete : String = "░", use_stdout = false) #

[View source]

Instance Method Detail

def complete : String #

[View source]
def complete=(complete : String) #

[View source]
def current : Float64 #

[View source]
def done #

[View source]
def done? #

[View source]
def inc #

[View source]
def incomplete : String #

[View source]
def incomplete=(incomplete : String) #

[View source]
def output_stream : IO::FileDescriptor #

[View source]
def output_stream=(output_stream : IO::FileDescriptor) #

[View source]
def percent #

[View source]
def set(n) #

[View source]
def step : UInt64 #

[View source]
def step=(step : UInt64) #

[View source]
def tick(n = @step, no_print = false) #

[View source]
def total : UInt64 #

[View source]
def total=(total : UInt64) #

[View source]
def width : UInt64 #

[View source]
def width=(width : UInt64) #

[View source]