Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-tdf-bin/helpers/string_helper.rb

Instance Method Summary collapse

Instance Method Details

#tdf_blueObject



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_greenObject



11
12
13
# File 'lib/cocoapods-tdf-bin/helpers/string_helper.rb', line 11

def tdf_green
  tdf_colorize(32)
end

#tdf_light_blueObject



27
28
29
# File 'lib/cocoapods-tdf-bin/helpers/string_helper.rb', line 27

def tdf_light_blue
  tdf_colorize(36)
end

#tdf_pinkObject



23
24
25
# File 'lib/cocoapods-tdf-bin/helpers/string_helper.rb', line 23

def tdf_pink
  tdf_colorize(35)
end

#tdf_redObject



7
8
9
# File 'lib/cocoapods-tdf-bin/helpers/string_helper.rb', line 7

def tdf_red
  tdf_colorize(31)
end

#tdf_yellowObject



15
16
17
# File 'lib/cocoapods-tdf-bin/helpers/string_helper.rb', line 15

def tdf_yellow
  tdf_colorize(33)
end