Class: Dorian::Progress
- Inherits:
-
Object
- Object
- Dorian::Progress
- Defined in:
- lib/dorian/progress.rb
Constant Summary collapse
- FORMATS =
{ full: "%a |%b%i| %p%% %t | %c/%C | %e", minimal: nil }.freeze
Class Method Summary collapse
Class Method Details
.create(total: nil, format: nil, output: nil) ⇒ Object
9 10 11 12 |
# File 'lib/dorian/progress.rb', line 9 def self.create(total: nil, format: nil, output: nil) format = FORMATS.fetch((format || :full).to_sym) if format ProgressBar.create(total:, format:, output:) end |