Class: String

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

Instance Method Summary collapse

Instance Method Details

#bg_blackObject



12
# File 'lib/manycolors.rb', line 12

def bg_black;       		"\033[40m#{self}\033[0m" end

#bg_blueObject



16
# File 'lib/manycolors.rb', line 16

def bg_blue;        		"\033[44m#{self}\033[0m" end

#bg_brownObject



15
# File 'lib/manycolors.rb', line 15

def bg_brown;       		"\033[43m#{self}\033[0m" end

#bg_cyanObject



18
# File 'lib/manycolors.rb', line 18

def bg_cyan;        		"\033[46m#{self}\033[0m" end

#bg_grayObject



19
# File 'lib/manycolors.rb', line 19

def bg_gray;        		"\033[47m#{self}\033[0m" end

#bg_greenObject



14
# File 'lib/manycolors.rb', line 14

def bg_green;       		"\033[42m#{self}\033[0m" end

#bg_greyObject



20
# File 'lib/manycolors.rb', line 20

def bg_grey;        		"\033[47m#{self}\033[0m" end

#bg_light_blueObject



43
# File 'lib/manycolors.rb', line 43

def bg_light_blue; 			"\033[104m#{self}\033[0m" end

#bg_light_cyanObject



45
# File 'lib/manycolors.rb', line 45

def bg_light_cyan; 			"\033[106m#{self}\033[0m" end

#bg_light_dark_grayObject



39
# File 'lib/manycolors.rb', line 39

def bg_light_dark_gray;         	"\033[100m#{self}\033[0m" end

#bg_light_dark_greyObject



38
# File 'lib/manycolors.rb', line 38

def bg_light_dark_grey;         	"\033[100m#{self}\033[0m" end

#bg_light_greenObject



41
# File 'lib/manycolors.rb', line 41

def bg_light_green; 		        "\033[102m#{self}\033[0m" end

#bg_light_magentaObject



44
# File 'lib/manycolors.rb', line 44

def bg_light_magenta; 		"\033[105m#{self}\033[0m" end

#bg_light_redObject



40
# File 'lib/manycolors.rb', line 40

def bg_light_red; 			"\033[101m#{self}\033[0m" end

#bg_light_yellowObject



42
# File 'lib/manycolors.rb', line 42

def bg_light_yellow; 	        	"\033[103m#{self}\033[0m" end

#bg_magentaObject



17
# File 'lib/manycolors.rb', line 17

def bg_magenta;     		"\033[45m#{self}\033[0m" end

#bg_redObject



13
# File 'lib/manycolors.rb', line 13

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

#bg_whiteObject



21
# File 'lib/manycolors.rb', line 21

def bg_white; 				"\033[7m#{self}\033[0m" end

#blackObject



3
# File 'lib/manycolors.rb', line 3

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

#blueObject



7
# File 'lib/manycolors.rb', line 7

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

#boldObject



22
# File 'lib/manycolors.rb', line 22

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

#brownObject



6
# File 'lib/manycolors.rb', line 6

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

#cyanObject



9
# File 'lib/manycolors.rb', line 9

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

#grayObject



10
# File 'lib/manycolors.rb', line 10

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

#greenObject



5
# File 'lib/manycolors.rb', line 5

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

#greyObject



11
# File 'lib/manycolors.rb', line 11

def grey;           		"\033[37m#{self}\033[0m" end

#invisibleObject



26
# File 'lib/manycolors.rb', line 26

def invisible; 				"\033[8m#{self}\033[0m" end

#italicObject



24
# File 'lib/manycolors.rb', line 24

def italic; 				"\033[3m#{self}\033[0m" end

#light_blueObject



34
# File 'lib/manycolors.rb', line 34

def light_blue; 			"\033[94m#{self}\033[0m" end

#light_cyanObject



36
# File 'lib/manycolors.rb', line 36

def light_cyan; 			"\033[96m#{self}\033[0m" end

#light_dark_grayObject



30
# File 'lib/manycolors.rb', line 30

def light_dark_gray;		        "\033[90m#{self}\033[0m" end

#light_dark_greyObject



29
# File 'lib/manycolors.rb', line 29

def light_dark_grey;		        "\033[90m#{self}\033[0m" end

#light_greenObject



32
# File 'lib/manycolors.rb', line 32

def light_green; 			"\033[92m#{self}\033[0m" end

#light_magentaObject



35
# File 'lib/manycolors.rb', line 35

def light_magenta; 			"\033[95m#{self}\033[0m" end

#light_redObject



31
# File 'lib/manycolors.rb', line 31

def light_red; 				"\033[91m#{self}\033[0m" end

#light_yellowObject



33
# File 'lib/manycolors.rb', line 33

def light_yellow; 			"\033[93m#{self}\033[0m" end

#magentaObject



8
# File 'lib/manycolors.rb', line 8

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

#redObject



4
# File 'lib/manycolors.rb', line 4

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

#reverse_colorObject



23
# File 'lib/manycolors.rb', line 23

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

#somethingObject



28
# File 'lib/manycolors.rb', line 28

def something; 				"\033[49m#{self}\033[0m" end

#strikeObject



27
# File 'lib/manycolors.rb', line 27

def strike; 				"\033[9m#{self}\033[0m" end

#underlineObject



25
# File 'lib/manycolors.rb', line 25

def underline; 				"\033[4m#{self}\033[0m" end

#whiteObject



37
# File 'lib/manycolors.rb', line 37

def white;               		"\033[97m#{self}\033[0m" end