Class: Imapcli::Cli
Overview
rubocop:disable Metrics/ClassLength,Style/Documentation
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.format_bytes(bytes, human = false) ⇒ Object
137 138 139 |
# File 'lib/imapcli/cli.rb', line 137 def self.format_bytes(bytes, human = false) human ? ActiveSupport::NumberHelper.number_to_human_size(bytes) : bytes end |
Instance Method Details
#print_warnings ⇒ Object
181 182 183 |
# File 'lib/imapcli/cli.rb', line 181 def print_warnings @validator.warnings.each { |warning| @prompt.warn warning } end |