Module: ProgressBar::LengthCalculator

Included in:
Base
Defined in:
lib/progress_bar/length_calculator.rb

Instance Method Summary collapse

Instance Method Details

#initialize(options) ⇒ Object



3
4
5
6
7
# File 'lib/progress_bar/length_calculator.rb', line 3

def initialize(options)
  @length_override = ENV['RUBY_PROGRESS_BAR_LENGTH'] || options[:length]

  super()
end