SusSourceSusOutputProgress

class Progress

Definitions

def increment(amount = 1)

Increase the amont of work done.

Implementation

def increment(amount = 1)
	@current += amount
	
	@bar&.update(@current, @total, self.to_s)
	@lines&.redraw(0)
	
	return self
end

def expand(amount = 1)

Increase the total size of the progress.

Implementation

def expand(amount = 1)
	@total += amount
	
	@bar&.update(@current, @total, self.to_s)
	@lines&.redraw(0)
	
	return self
end