Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/cookbook_sdk/ext/string.rb
Overview
Extend String Class
Instance Method Summary collapse
Instance Method Details
#bold ⇒ Object
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 |
#cyan ⇒ Object
13 14 15 |
# File 'lib/cookbook_sdk/ext/string.rb', line 13 def cyan colorize(:cyan) end |
#gray ⇒ Object
9 10 11 |
# File 'lib/cookbook_sdk/ext/string.rb', line 9 def gray colorize(:gray) end |