class String
Public Instance Methods
bg_black()
click to toggle source
# File lib/consolor.rb, line 10 def bg_black; "\033[40m#{self}\0330m" end
bg_blue()
click to toggle source
# File lib/consolor.rb, line 14 def bg_blue; "\033[44m#{self}\033[0m" end
bg_brown()
click to toggle source
# File lib/consolor.rb, line 13 def bg_brown; "\033[43m#{self}\033[0m" end
bg_cyan()
click to toggle source
# File lib/consolor.rb, line 16 def bg_cyan; "\033[46m#{self}\033[0m" end
bg_gray()
click to toggle source
# File lib/consolor.rb, line 17 def bg_gray; "\033[47m#{self}\033[0m" end
bg_green()
click to toggle source
# File lib/consolor.rb, line 12 def bg_green; "\033[42m#{self}\033[0m" end
bg_magenta()
click to toggle source
# File lib/consolor.rb, line 15 def bg_magenta; "\033[45m#{self}\033[0m" end
bg_red()
click to toggle source
# File lib/consolor.rb, line 11 def bg_red; "\033[41m#{self}\033[0m" end
black()
click to toggle source
# File lib/consolor.rb, line 2 def black; "\033[30m#{self}\033[0m" end
blue()
click to toggle source
# File lib/consolor.rb, line 6 def blue; "\033[34m#{self}\033[0m" end
bold()
click to toggle source
# File lib/consolor.rb, line 18 def bold; "\033[1m#{self}\033[22m" end
brown()
click to toggle source
# File lib/consolor.rb, line 5 def brown; "\033[33m#{self}\033[0m" end
cyan()
click to toggle source
# File lib/consolor.rb, line 8 def cyan; "\033[36m#{self}\033[0m" end
gray()
click to toggle source
# File lib/consolor.rb, line 9 def gray; "\033[37m#{self}\033[0m" end
green()
click to toggle source
# File lib/consolor.rb, line 4 def green; "\033[32m#{self}\033[0m" end
magenta()
click to toggle source
# File lib/consolor.rb, line 7 def magenta; "\033[35m#{self}\033[0m" end
red()
click to toggle source
# File lib/consolor.rb, line 3 def red; "\033[31m#{self}\033[0m" end
reverse_color()
click to toggle source
# File lib/consolor.rb, line 19 def reverse_color; "\033[7m#{self}\033[27m" end