Class: String

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

Instance Method Summary collapse

Instance Method Details

#blackObject



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

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

#blueObject



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

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

#boldObject



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

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

#brownObject



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

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

#greenObject



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

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

#redObject



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

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