0.0
No release in over 3 years
Low commit activity in last 3 years
Adds methods to add ansi colors escape codes to the standard String class
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.6.4
 Project Readme

Ansi Colors

This gem adds methods to colorize strings using ansi escape codes. The gem works by adding methods to the standard String class. All added methods start with the prefix 'ansi_' and continue with one of the symbols defined in the ANSI_CMD hash in ansi_colors.rb.

Example:

require 'ansi_colors'
		
puts "red coloured string".ansi_red	
puts "white and bold string".ansi_white.ansi_bold