Sha256: 0b726ce77d5c5193701850c66848de55a83bd508b7c05e63c80cb10b960a0fa6
Contents?: true
Size: 358 Bytes
Versions: 4281
Compression:
Stored size: 358 Bytes
Contents
require 'ruby-progressbar/projectors/smoothed_average' class ProgressBar class Projector DEFAULT_PROJECTOR = ProgressBar::Projectors::SmoothedAverage NAME_TO_PROJECTOR_MAP = { 'smoothed' => ProgressBar::Projectors::SmoothedAverage }.freeze def self.from_type(name) NAME_TO_PROJECTOR_MAP.fetch(name, DEFAULT_PROJECTOR) end end end
Version data entries
4,281 entries across 4,281 versions & 28 rubygems