Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/quality_meter/string.rb

Instance Method Summary collapse

Instance Method Details

#bg_redObject



6
# File 'lib/quality_meter/string.rb', line 6

def bg_red;         "\033[41m#{self}\033[0m" end

#blackObject



4
# File 'lib/quality_meter/string.rb', line 4

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

#boldObject



3
# File 'lib/quality_meter/string.rb', line 3

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

#greenObject



5
# File 'lib/quality_meter/string.rb', line 5

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

#reverse_colorObject



2
# File 'lib/quality_meter/string.rb', line 2

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