colorizr is a Ruby gem that provides an easy way to add color to your command line output working with the String class.
Methods to alter the color of any string (when it is output to the terminal)
- red
- green
- yellow
- blue
- pink
- light_blue
- white
- light_grey
- black
Additional String class methods
- String.colors - returns an array of all the color options
- String.sample_colors - prints sample output demonstrating all the colors
require 'colorizr'
puts "John".red
puts "Paul".green
puts "George".blue
puts "Ringo".yellow
- Download colorizr-0.0.1.gem
- gem install colorizr