Sha256: 81ff0c9f6ead59f618ceb775bbdcd96777c13d12f279628e344b3f60431b5076
Contents?: true
Size: 1.31 KB
Versions: 5
Compression:
Stored size: 1.31 KB
Contents
class String def reddish; "\033[1;31m#{self}\033[0m" end def pink; "\033[1;35m#{self}\033[0m" end def black; "\033[30m#{self}\033[0m" end def red; "\033[31m#{self}\033[0m" end def green; "\033[32m#{self}\033[0m" end def brown; "\033[33m#{self}\033[0m" end def blue; "\033[34m#{self}\033[0m" end def magenta; "\033[35m#{self}\033[0m" end def cyan; "\033[36m#{self}\033[0m" end def gray; "\033[37m#{self}\033[0m" end def bg_black; "\033[40m#{self}\0330m" end def bg_red; "\033[41m#{self}\033[0m" end def bg_green; "\033[42m#{self}\033[0m" end def bg_brown; "\033[43m#{self}\033[0m" end def bg_blue; "\033[44m#{self}\033[0m" end def bg_magenta; "\033[45m#{self}\033[0m" end def bg_cyan; "\033[46m#{self}\033[0m" end def bg_gray; "\033[47m#{self}\033[0m" end def bold; "\033[1m#{self}\033[22m" end def reverse_color; "\033[7m#{self}\033[27m" end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ayadn-0.6.4 | lib/ayadn/colors.rb |
ayadn-0.6.3 | lib/ayadn/colors.rb |
ayadn-0.6.2 | lib/ayadn/colors.rb |
ayadn-0.6.1 | lib/ayadn/colors.rb |
ayadn-0.6.0 | lib/ayadn/colors.rb |