You can use 'colortheme' gem to change the color of the text in Ruby.
install with gem
gem install colortheme
install with git hub
git clone https://github.com/nimacpp/colortheme.git
cd colortheme
gem build colortheme.gemspec
gem install colortheme*.gem
how can use
first include colortheme in your code :
require 'colortheme'
then you can use it like this :
require 'colortheme'
puts "hello world".green
output :
Top comments (0)