class ProgressMeterFactory
Constructs progress meters that output progress info to the user.
Public Class Methods
from_options(options)
click to toggle source
Constructs a progress meter from a hash containing the options passed on the command line.
# File lib/progress.rb, line 56 def self.from_options(options) pm_class = { "entry" => EntryCountProgressMeter, "time" => TimeProgressMeter } pm_class.default = NullProgressMeter pm_class[options[:progress]].new end