lib/ruby-progressbar/outputs/tty.rb in ruby-progressbar-1.10.1 vs lib/ruby-progressbar/outputs/tty.rb in ruby-progressbar-1.11.0
- old
+ new
@@ -15,10 +15,10 @@
def bar_update_string
bar.to_s
end
def default_format
- DEFAULT_FORMAT_STRING
+ ENV['RUBY_PROGRESS_BAR_FORMAT'] || DEFAULT_FORMAT_STRING
end
def resolve_format(other_format)
other_format || default_format
end