Sha256: c0a1d2f99dc7c75b20331bfd8e46329d5d1c710c9c0f410ac631fb88958753e8
Contents?: true
Size: 643 Bytes
Versions: 32
Compression:
Stored size: 643 Bytes
Contents
# frozen_string_literal: true require 'ruby-progressbar/outputs/null' module CMSScanner # Adds the feature to log message sent to #log # So they can be retrieved at some point, like after a password attack with a JSON output # which won't display the progressbar but still call #log for errors etc class ProgressBarNullOutput < ::ProgressBar::Outputs::Null # @retutn [ Array<String> ] def logs @logs ||= [] end # Override of parent method # @return [ Array<String> ] return the logs when no string provided def log(string = nil) return logs if string.nil? logs << string end end end
Version data entries
32 entries across 32 versions & 1 rubygems