Class: LgPodPlugin::String
- Inherits:
-
Object
- Object
- LgPodPlugin::String
- Defined in:
- lib/lg_pod_plugin/utils/string.rb
Instance Method Summary collapse
- #blue ⇒ Object
-
#colorize(color_code) ⇒ Object
colorization.
- #green ⇒ Object
- #light_blue ⇒ Object
- #pink_color ⇒ Object
- #red ⇒ Object
- #yellow ⇒ Object
Instance Method Details
#blue ⇒ Object
21 22 23 |
# File 'lib/lg_pod_plugin/utils/string.rb', line 21 def blue colorize(34) end |
#colorize(color_code) ⇒ Object
colorization
5 6 7 |
# File 'lib/lg_pod_plugin/utils/string.rb', line 5 def colorize(color_code) "\e[#{color_code}m#{self}\e[0m" end |
#green ⇒ Object
13 14 15 |
# File 'lib/lg_pod_plugin/utils/string.rb', line 13 def green colorize(32) end |
#light_blue ⇒ Object
29 30 31 |
# File 'lib/lg_pod_plugin/utils/string.rb', line 29 def light_blue colorize(36) end |
#pink_color ⇒ Object
25 26 27 |
# File 'lib/lg_pod_plugin/utils/string.rb', line 25 def pink_color colorize(35) end |
#red ⇒ Object
9 10 11 |
# File 'lib/lg_pod_plugin/utils/string.rb', line 9 def red colorize(31) end |
#yellow ⇒ Object
17 18 19 |
# File 'lib/lg_pod_plugin/utils/string.rb', line 17 def yellow colorize(33) end |