Toc is a simple Ruby Gem allowing you to colour outputs to the console.
Toc inspired by tco and colored. It is written with simplicity and usability in mind.
To install Toc via RubyGems:
$ gem install toc
- Black
- Red
- Green
- Yellow
- Purple
- Pink
- Light Blue
All methods convert colour names to snake_case
.
puts 'Hello World'.red
puts 'Hello World'.yellow
puts 'Hello World'.green
puts 'Hello World'.red_on_black
puts 'Hello World'.black_on_light_blue
puts 'Hello World'.green_on_pink
puts 'The text will be Bold!'.bold
puts 'The text will be Underlined!'.underline
puts 'The text will be Inversed!'.inverse