Class: Imapcli::Cli

Inherits:
Object
  • Object
show all
Extended by:
GLI::App
Defined in:
lib/imapcli/cli.rb

Overview

rubocop:disable Metrics/ClassLength,Style/Documentation

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.format_bytes(bytes, human = false) ⇒ Object



136
137
138
# File 'lib/imapcli/cli.rb', line 136

def self.format_bytes(bytes, human = false)
  human ? ActiveSupport::NumberHelper.number_to_human_size(bytes) : bytes
end

Instance Method Details



180
181
182
# File 'lib/imapcli/cli.rb', line 180

def print_warnings
  @validator.warnings.each { |warning| @prompt.warn warning }
end