Module: CommandKit::Colors::PlainText

Defined in:
lib/command_kit/colors.rb

Overview

Dummy module with the same interface as ANSI, but for when ANSI is not supported.

Constant Summary collapse

RESET =
CLEAR = \
BOLD = \
RESET_INTENSITY = \
BLACK = \
RED = \
GREEN = \
YELLOW = \
BLUE = \
MAGENTA = \
CYAN = \
WHITE = \
RESET_COLOR = ''

Class Method Summary collapse

Class Method Details

.black(string = nil) ⇒ Object



311
312
313
# File 'lib/command_kit/colors.rb', line 311

def black(string=nil)
  string || ''
end

.blue(string = nil) ⇒ Object



327
328
329
# File 'lib/command_kit/colors.rb', line 327

def blue(string=nil)
  string || ''
end

.bold(string = nil) ⇒ Object



307
308
309
# File 'lib/command_kit/colors.rb', line 307

def bold(string=nil)
  string || ''
end

.clearObject



303
304
305
# File 'lib/command_kit/colors.rb', line 303

def clear
  reset
end

.cyan(string = nil) ⇒ Object



335
336
337
# File 'lib/command_kit/colors.rb', line 335

def cyan(string=nil)
  string || ''
end

.green(string = nil) ⇒ Object



319
320
321
# File 'lib/command_kit/colors.rb', line 319

def green(string=nil)
  string || ''
end

.magenta(string = nil) ⇒ Object



331
332
333
# File 'lib/command_kit/colors.rb', line 331

def magenta(string=nil)
  string || ''
end

.red(string = nil) ⇒ Object



315
316
317
# File 'lib/command_kit/colors.rb', line 315

def red(string=nil)
  string || ''
end

.resetObject



299
300
301
# File 'lib/command_kit/colors.rb', line 299

def reset
  RESET
end

.white(string = nil) ⇒ Object



339
340
341
# File 'lib/command_kit/colors.rb', line 339

def white(string=nil)
  string || ''
end

.yellow(string = nil) ⇒ Object



323
324
325
# File 'lib/command_kit/colors.rb', line 323

def yellow(string=nil)
  string || ''
end