Skip to content

maxipombo/colorizr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

colorizr

colorizr is a Ruby gem that provides an easy way to add color to your command line output working with the String class.

Features overview

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

Usage instructions

require 'colorizr'

puts "John".red
puts "Paul".green
puts "George".blue
puts "Ringo".yellow

Installation instructions

  1. Download colorizr-0.0.1.gem
  2. gem install colorizr

About

First Ruby gem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages