Class: String

Inherits:
Object show all
Defined in:
lib/patches/string.rb

Instance Method Summary collapse

Instance Method Details

#bg_grayObject



39
40
41
# File 'lib/patches/string.rb', line 39

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

#commandObject



7
8
9
# File 'lib/patches/string.rb', line 7

def command
  self.colorize(:black).on_white
end

#failureObject



11
12
13
# File 'lib/patches/string.rb', line 11

def failure
  self.colorize(:red).on_white
end

#friendlyObject



19
20
21
# File 'lib/patches/string.rb', line 19

def friendly
  self.colorize(:black).on_green
end

#headsupObject



31
32
33
# File 'lib/patches/string.rb', line 31

def headsup
  self.colorize(:yellow).on_black
end

#informationalObject



3
4
5
# File 'lib/patches/string.rb', line 3

def informational
  self.colorize(:white).on_green
end


27
28
29
# File 'lib/patches/string.rb', line 27

def menu
  self.colorize(:yellow).on_black
end

#outputObject



35
36
37
# File 'lib/patches/string.rb', line 35

def output
  self
end

#successObject



15
16
17
# File 'lib/patches/string.rb', line 15

def success
  self.friendly
end

#warningObject



23
24
25
# File 'lib/patches/string.rb', line 23

def warning
  self.colorize(:orange).on_black
end