Class: LgPodPlugin::String

Inherits:
Object
  • Object
show all
Defined in:
lib/lg_pod_plugin/utils/string.rb

Instance Method Summary collapse

Instance Method Details

#blueObject



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

#greenObject



13
14
15
# File 'lib/lg_pod_plugin/utils/string.rb', line 13

def green
  colorize(32)
end

#light_blueObject



29
30
31
# File 'lib/lg_pod_plugin/utils/string.rb', line 29

def light_blue
  colorize(36)
end

#pink_colorObject



25
26
27
# File 'lib/lg_pod_plugin/utils/string.rb', line 25

def pink_color
  colorize(35)
end

#redObject



9
10
11
# File 'lib/lg_pod_plugin/utils/string.rb', line 9

def red
  colorize(31)
end

#yellowObject



17
18
19
# File 'lib/lg_pod_plugin/utils/string.rb', line 17

def yellow
  colorize(33)
end