module Ellipses::Support::UI

Public Instance Methods

abort(string) click to toggle source
# File lib/ellipses/support/ui.rb, line 16
def abort(string)
  Kernel.abort $stderr.tty? ? "#{Color.bold Color.red '✗'}  #{string}" : "✗  #{string}"
end
info(string) click to toggle source
# File lib/ellipses/support/ui.rb, line 12
def info(string)
  Kernel.warn $stderr.tty? ? "#{Color.bold Color.green '✓'}  #{Color.dim string}" : "✓  #{string}"
end
notice(string) click to toggle source
# File lib/ellipses/support/ui.rb, line 8
def notice(string)
  Kernel.warn $stderr.tty? ? "#{Color.bold Color.green '✓'}  #{string}" : "✓  #{string}"
end
warn(string) click to toggle source
# File lib/ellipses/support/ui.rb, line 20
def warn(string)
  Kernel.warn $stderr.tty? ? "#{Color.bold Color.yellow '!'}  #{string}" : "!  #{string}"
end