Class: String

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

Instance Method Summary collapse

Instance Method Details

#bg_blackObject

[View source]

11
# File 'lib/dblink/color.rb', line 11

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

#bg_blueObject

[View source]

15
# File 'lib/dblink/color.rb', line 15

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

#bg_brownObject

[View source]

14
# File 'lib/dblink/color.rb', line 14

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

#bg_cyanObject

[View source]

17
# File 'lib/dblink/color.rb', line 17

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

#bg_grayObject

[View source]

18
# File 'lib/dblink/color.rb', line 18

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

#bg_greenObject

[View source]

13
# File 'lib/dblink/color.rb', line 13

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

#bg_magentaObject

[View source]

16
# File 'lib/dblink/color.rb', line 16

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

#bg_redObject

[View source]

12
# File 'lib/dblink/color.rb', line 12

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

#blackObject

[View source]

2
# File 'lib/dblink/color.rb', line 2

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

23
# File 'lib/dblink/color.rb', line 23

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

#blueObject

[View source]

6
# File 'lib/dblink/color.rb', line 6

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

#boldObject

[View source]

20
# File 'lib/dblink/color.rb', line 20

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

#brownObject

[View source]

5
# File 'lib/dblink/color.rb', line 5

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

#cyanObject

[View source]

8
# File 'lib/dblink/color.rb', line 8

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

#grayObject

[View source]

9
# File 'lib/dblink/color.rb', line 9

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

#greenObject

[View source]

4
# File 'lib/dblink/color.rb', line 4

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

#italicObject

[View source]

21
# File 'lib/dblink/color.rb', line 21

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

#magentaObject

[View source]

7
# File 'lib/dblink/color.rb', line 7

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

#redObject

[View source]

3
# File 'lib/dblink/color.rb', line 3

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

#reverse_colorObject

[View source]

24
# File 'lib/dblink/color.rb', line 24

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

#underlineObject

[View source]

22
# File 'lib/dblink/color.rb', line 22

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