Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/cookbook_sdk/ext/string.rb

Overview

Extend String Class

Instance Method Summary collapse

Instance Method Details

#boldObject



5
6
7
# File 'lib/cookbook_sdk/ext/string.rb', line 5

def bold
  colorize(:bold)
end

#colorize(color) ⇒ Object



17
18
19
# File 'lib/cookbook_sdk/ext/string.rb', line 17

def colorize(color)
  HighLine.new.color(self, color)
end

#cyanObject



13
14
15
# File 'lib/cookbook_sdk/ext/string.rb', line 13

def cyan
  colorize(:cyan)
end

#grayObject



9
10
11
# File 'lib/cookbook_sdk/ext/string.rb', line 9

def gray
  colorize(:gray)
end