class String

Public Instance Methods

black() click to toggle source
# File lib/client-api/validator.rb, line 423
def black;          "\e[30m#{self}\e[0m" end
blue() click to toggle source
# File lib/client-api/validator.rb, line 427
def blue;           "\e[34m#{self}\e[0m" end
bold() click to toggle source
# File lib/client-api/validator.rb, line 432
def bold;           "\e[1m#{self}\e[22m" end
brown() click to toggle source
# File lib/client-api/validator.rb, line 426
def brown;          "\e[33m#{self}\e[0m" end
cyan() click to toggle source
# File lib/client-api/validator.rb, line 429
def cyan;           "\e[36m#{self}\e[0m" end
gray() click to toggle source
# File lib/client-api/validator.rb, line 430
def gray;           "\e[37m#{self}\e[0m" end
green() click to toggle source
# File lib/client-api/validator.rb, line 425
def green;          "\e[32m#{self}\e[0m" end
italic() click to toggle source
# File lib/client-api/validator.rb, line 433
def italic;         "\e[3m#{self}\e[23m" end
magenta() click to toggle source
# File lib/client-api/validator.rb, line 428
def magenta;        "\e[35m#{self}\e[0m" end
red() click to toggle source
# File lib/client-api/validator.rb, line 424
def red;            "\e[31m#{self}\e[0m" end
reverse_color() click to toggle source
# File lib/client-api/validator.rb, line 436
def reverse_color;  "\e[7m#{self}\e[27m" end
underline() click to toggle source
# File lib/client-api/validator.rb, line 434
def underline;      "\e[4m#{self}\e[24m" end