Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/google_api/core_ext/string.rb

Instance Method Summary collapse

Instance Method Details

#boldObject



10
11
12
# File 'lib/google_api/core_ext/string.rb', line 10

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

#greenObject



6
7
8
# File 'lib/google_api/core_ext/string.rb', line 6

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

#redObject



2
3
4
# File 'lib/google_api/core_ext/string.rb', line 2

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