Class: ConsoleProgressBar::ProgressBar

Inherits:
Object
  • Object
show all
Defined in:
lib/console_progress_bar.rb

Instance Method Summary collapse

Instance Method Details

#animator(options = {}) ⇒ Object



17
18
19
20
# File 'lib/console_progress_bar.rb', line 17

def animator(options = {})
	init_options(options)
	ConsoleProgressBar::Animator.new(@total, @with_elapsed_time, @with_remaining_time, @increment_size)
end

#bar(options = {}) ⇒ Object



22
23
24
25
# File 'lib/console_progress_bar.rb', line 22

def bar(options = {})
	init_options(options)
	ConsoleProgressBar::Bar.new(@total, @with_elapsed_time, @with_remaining_time, @increment_size, @width)
end

#counter(options = {}) ⇒ Object



12
13
14
15
# File 'lib/console_progress_bar.rb', line 12

def counter(options = {})
	init_options(options)
	ConsoleProgressBar::Counter.new(@total, @with_elapsed_time, @with_remaining_time, @increment_size)
end