Methods

Files

ProgressBar::LengthCalculator

Public Class Methods

new(options) click to toggle source
# File lib/ruby-progressbar/length_calculator.rb, line 3
def initialize(options)
  @length_override = ENV['RUBY_PROGRESS_BAR_LENGTH'] || options[:length]
  @length_override = @length_override.to_i if @length_override

  super()
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.