Method: ProgressBar::Output#initialize
- Defined in:
- lib/ruby-progressbar/output.rb
#initialize(options = {}) ⇒ Output
Returns a new instance of Output.
7 8 9 10 11 12 |
# File 'lib/ruby-progressbar/output.rb', line 7 def initialize( = {}) self. = [:bar] self.stream = [:output] || DEFAULT_OUTPUT_STREAM self.length_calculator = Calculators::Length.new() self.throttle = Throttle.new() end |