Class: BitClust::SilentProgressBar
- Defined in:
- lib/bitclust/silent_progress_bar.rb
Overview
Null-object version of ProgressBar.
Instance Attribute Summary collapse
-
#title ⇒ Object
Returns the value of attribute title.
Class Method Summary collapse
Instance Method Summary collapse
- #finish ⇒ Object
- #increment ⇒ Object
-
#initialize(output:, title:, total:) ⇒ SilentProgressBar
constructor
A new instance of SilentProgressBar.
Constructor Details
#initialize(output:, title:, total:) ⇒ SilentProgressBar
Returns a new instance of SilentProgressBar.
13 14 15 |
# File 'lib/bitclust/silent_progress_bar.rb', line 13 def initialize(output:, title:, total:) @title, @total, @output = title, total, output end |
Instance Attribute Details
#title ⇒ Object
Returns the value of attribute title.
7 8 9 |
# File 'lib/bitclust/silent_progress_bar.rb', line 7 def title @title end |
Class Method Details
.create(output: $stderr, title:, total:) ⇒ Object
9 10 11 |
# File 'lib/bitclust/silent_progress_bar.rb', line 9 def self.create(output: $stderr, title:, total:) self.new(output: output, title: title, total: total) end |