class String

Public Instance Methods

black() click to toggle source

color black method defined on string object @param request [Request] the request object @return [String] in black color

# File lib/text_shade.rb, line 13
def black
  shade(30)
end
blue() click to toggle source

color blue method defined on string object @param request [Request] the request object @return [String] in blue color

# File lib/text_shade.rb, line 41
def blue
  shade(34)
end
cyan() click to toggle source

color cyan method defined on string object @param request [Request] the request object @return [String] in cyan color

# File lib/text_shade.rb, line 55
def cyan
  shade(36)
end
green() click to toggle source

color green method defined on string object @param request [Request] the request object @return [String] in green color

# File lib/text_shade.rb, line 27
def green
  shade(32)
end
light_blue() click to toggle source

color light blue method defined on string object @param request [Request] the request object @return [String] in light blue color

# File lib/text_shade.rb, line 90
def light_blue
  shade(94)
end
light_cyan() click to toggle source

color light cyan method defined on string object @param request [Request] the request object @return [String] in light cyan color

# File lib/text_shade.rb, line 104
def light_cyan
  shade(96)
end
light_gray() click to toggle source

color light gray method defined on string object @param request [Request] the request object @return [String] in light gray color

# File lib/text_shade.rb, line 62
def light_gray
  shade(37)
end
light_green() click to toggle source

color light green method defined on string object @param request [Request] the request object @return [String] in light green color

# File lib/text_shade.rb, line 76
def light_green
  shade(92)
end
light_magenta() click to toggle source

color light magenta method defined on string object @param request [Request] the request object @return [String] in light magenta color

# File lib/text_shade.rb, line 97
def light_magenta
  shade(95)
end
light_red() click to toggle source

color light red method defined on string object @param request [Request] the request object @return [String] in light red color

# File lib/text_shade.rb, line 69
def light_red
  shade(91)
end
light_yellow() click to toggle source

color light yellow method defined on string object @param request [Request] the request object @return [String] in light yellow color

# File lib/text_shade.rb, line 83
def light_yellow
  shade(93)
end
magenta() click to toggle source

color magenta method defined on string object @param request [Request] the request object @return [String] in magenta color

# File lib/text_shade.rb, line 48
def magenta
  shade(35)
end
red() click to toggle source

color red method defined on string object @param request [Request] the request object @return [String] in red color

# File lib/text_shade.rb, line 20
def red
  shade(31)
end
shade(code) click to toggle source

apply color to string object @param request [Request] the request object @param integer [integer] @return [string] converted

# File lib/text_shade.rb, line 6
def shade(code)
  puts "\e[#{code}m#{self}\e[0m"
end
yellow() click to toggle source

color yellow method defined on string object @param request [Request] the request object @return [String] in yellow color

# File lib/text_shade.rb, line 34
def yellow
  shade(33)
end