Class: String

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

Instance Method Summary collapse

Instance Method Details

#blackObject



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

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


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

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

#blueObject



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

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

#boldObject



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

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

#brownObject



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

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

#cyanObject



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

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

#grayObject



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

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

#greenObject



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

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

#italicObject



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

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

#magentaObject



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

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

#redObject



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

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

#reverse_colorObject



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

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

#underlineObject



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

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