Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/ezgit/string.rb,
lib/ezgit/string_no_color.rb

Instance Method Summary collapse

Instance Method Details

#blackObject



18
19
20
# File 'lib/ezgit/string.rb', line 18

def black
  BLACK + self + CLEAR
end

#blueObject



34
35
36
# File 'lib/ezgit/string.rb', line 34

def blue
  BLUE + self + CLEAR
end

#boldObject



14
15
16
# File 'lib/ezgit/string.rb', line 14

def bold
  BOLD+ self + CLEAR
end

#cyanObject



42
43
44
# File 'lib/ezgit/string.rb', line 42

def cyan
  CYAN + self + CLEAR
end

#greenObject



26
27
28
# File 'lib/ezgit/string.rb', line 26

def green
  GREEN + self + CLEAR
end

#magentaObject



38
39
40
# File 'lib/ezgit/string.rb', line 38

def magenta
  MAGENTA + self + CLEAR
end

#redObject



22
23
24
# File 'lib/ezgit/string.rb', line 22

def red
  RED + self + CLEAR
end

#whiteObject



46
47
48
# File 'lib/ezgit/string.rb', line 46

def white
  WHITE + self + CLEAR
end

#yellowObject



30
31
32
# File 'lib/ezgit/string.rb', line 30

def yellow
  YELLOW + self + CLEAR
end