Class: String

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

Instance Method Summary collapse

Instance Method Details

#blackObject


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

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

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

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

#blueObject


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

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

#boldObject


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

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

#brownObject


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

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

#cyanObject


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

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

#grayObject


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

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

#greenObject


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

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

#italicObject


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

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

#magentaObject


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

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

#redObject


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

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

#reverse_colorObject


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

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

#underlineObject


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

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