Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/cocoapods-tdf-bin/helpers/string_helper.rb
Instance Method Summary collapse
- #tdf_blue ⇒ Object
-
#tdf_colorize(color_code) ⇒ Object
colorization.
- #tdf_green ⇒ Object
- #tdf_light_blue ⇒ Object
- #tdf_pink ⇒ Object
- #tdf_red ⇒ Object
- #tdf_yellow ⇒ Object
Instance Method Details
#tdf_blue ⇒ Object
19 20 21 |
# File 'lib/cocoapods-tdf-bin/helpers/string_helper.rb', line 19 def tdf_blue tdf_colorize(34) end |
#tdf_colorize(color_code) ⇒ Object
colorization
3 4 5 |
# File 'lib/cocoapods-tdf-bin/helpers/string_helper.rb', line 3 def tdf_colorize(color_code) "\e[#{color_code}m#{self}\e[0m" end |
#tdf_green ⇒ Object
11 12 13 |
# File 'lib/cocoapods-tdf-bin/helpers/string_helper.rb', line 11 def tdf_green tdf_colorize(32) end |
#tdf_light_blue ⇒ Object
27 28 29 |
# File 'lib/cocoapods-tdf-bin/helpers/string_helper.rb', line 27 def tdf_light_blue tdf_colorize(36) end |
#tdf_pink ⇒ Object
23 24 25 |
# File 'lib/cocoapods-tdf-bin/helpers/string_helper.rb', line 23 def tdf_pink tdf_colorize(35) end |
#tdf_red ⇒ Object
7 8 9 |
# File 'lib/cocoapods-tdf-bin/helpers/string_helper.rb', line 7 def tdf_red tdf_colorize(31) end |
#tdf_yellow ⇒ Object
15 16 17 |
# File 'lib/cocoapods-tdf-bin/helpers/string_helper.rb', line 15 def tdf_yellow tdf_colorize(33) end |