Class: ProgressBar
- Inherits:
-
Object
show all
- Defined in:
- lib/ruby-progressbar.rb,
lib/progress_bar/base.rb,
lib/progress_bar/time.rb,
lib/progress_bar/version.rb,
lib/progress_bar/formatter.rb,
lib/progress_bar/depreciable.rb,
lib/progress_bar/format/base.rb,
lib/progress_bar/components/bar.rb,
lib/progress_bar/format/molecule.rb,
lib/progress_bar/components/timer.rb,
lib/progress_bar/length_calculator.rb,
lib/progress_bar/components/progressable.rb,
lib/progress_bar/components/elapsed_timer.rb,
lib/progress_bar/components/estimated_timer.rb,
lib/progress_bar/running_average_calculator.rb
Defined Under Namespace
Modules: Components, Depreciable, Format, Formatter, LengthCalculator
Classes: Base, RunningAverageCalculator, Time
Constant Summary
collapse
- VERSION =
'1.0.1'
Class Method Summary
collapse
Class Method Details
.create(*args) ⇒ Object
16
17
18
|
# File 'lib/ruby-progressbar.rb', line 16
def self.create(*args)
ProgressBar::Base.new *args
end
|
.new(*args) ⇒ Object
10
11
12
13
14
|
# File 'lib/ruby-progressbar.rb', line 10
def self.new(*args)
puts "DEPRECATION WARNING: Calling `ProgressBar.new` is deprecated and will be removed on or after #{ProgressBar::Depreciable::DEPRECATION_DATE}. Please use `ProgressBar.create` instead."
create *args
end
|