Colorize is my favorite gem! 🙂
Check it out:
https://github.com/fazibear/colorize
Installation:
gem install colorize
Usage:
require 'colorize'
puts "I am now red".red
puts "I am now blue".blue
puts "Testing".yellow
More Related Contents:
- What is the difference between require_relative and require in Ruby?
- Why does Ruby 1.9.2 remove “.” from LOAD_PATH, and what’s the alternative?
- Ruby Gem install Json fails on Mavericks and Xcode 5.1 – unknown argument: ‘-multiply_definedsuppress’
- Blocks and yields in Ruby
- Best way to require all files from a directory in ruby?
- What does %w(array) mean?
- How to get argument names using reflection
- How to make a HTTP request using Ruby on Rails?
- Continuously read from STDOUT of external process in Ruby
- How to count duplicate elements in a Ruby array
- Ruby’s double colon (::) operator usage differences
- What does tilde-greater-than (~>) mean in Ruby gem dependencies? [duplicate]
- How do I run a rake task from Capistrano?
- Create two-dimensional arrays and access sub-arrays in Ruby
- Ruby Proc Syntax
- Serving static files with Sinatra
- Nokogiri, open-uri, and Unicode Characters
- `&:views_count` in `Post.published.collect(&:views_count)` [duplicate]
- Ruby 1.9: how can I properly upcase & downcase multibyte strings?
- Ruby: Easiest Way to Filter Hash Keys?
- Ruby ‘require’ error: cannot load such file
- Testing modules in RSpec
- Why do two strings separated by space concatenate in Ruby?
- How to assign hash[‘a’][‘b’]= ‘c’ if hash[‘a’] doesn’t exist?
- What is the difference between Raising Exceptions vs Throwing Exceptions in Ruby?
- List of installed gems?
- What are those pipe symbols for in Ruby?
- Ruby’s yield feature in relation to computer science
- ERROR: Error installing ffi: ERROR: Failed to build gem native extension
- Why isn’t current directory on my Ruby path? [duplicate]