Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/client-api/validator.rb

Instance Method Summary collapse

Instance Method Details

#blackObject



423
# File 'lib/client-api/validator.rb', line 423

def black;          "\e[30m#{self}\e[0m" end


435
# File 'lib/client-api/validator.rb', line 435

def blink;          "\e[5m#{self}\e[25m" end

#blueObject



427
# File 'lib/client-api/validator.rb', line 427

def blue;           "\e[34m#{self}\e[0m" end

#boldObject



432
# File 'lib/client-api/validator.rb', line 432

def bold;           "\e[1m#{self}\e[22m" end

#brownObject



426
# File 'lib/client-api/validator.rb', line 426

def brown;          "\e[33m#{self}\e[0m" end

#cyanObject



429
# File 'lib/client-api/validator.rb', line 429

def cyan;           "\e[36m#{self}\e[0m" end

#grayObject



430
# File 'lib/client-api/validator.rb', line 430

def gray;           "\e[37m#{self}\e[0m" end

#greenObject



425
# File 'lib/client-api/validator.rb', line 425

def green;          "\e[32m#{self}\e[0m" end

#italicObject



433
# File 'lib/client-api/validator.rb', line 433

def italic;         "\e[3m#{self}\e[23m" end

#magentaObject



428
# File 'lib/client-api/validator.rb', line 428

def magenta;        "\e[35m#{self}\e[0m" end

#redObject



424
# File 'lib/client-api/validator.rb', line 424

def red;            "\e[31m#{self}\e[0m" end

#reverse_colorObject



436
# File 'lib/client-api/validator.rb', line 436

def reverse_color;  "\e[7m#{self}\e[27m" end

#underlineObject



434
# File 'lib/client-api/validator.rb', line 434

def underline;      "\e[4m#{self}\e[24m" end