Skip to content

tiimgreen/toc

Repository files navigation

Toc (.to_c)Build StatusGem VersionCoverage

Toc is a simple Ruby Gem allowing you to colour outputs to the console.

Inspiration

Toc inspired bytcoandcolored.It is written with simplicity and usability in mind.

Usage

To install Toc via RubyGems:

$ gem install toc

Full List of Colours:

  • Black
  • Red
  • Green
  • Yellow
  • Purple
  • Pink
  • Light Blue

All methods convert colour names tosnake_case.

Forground Colour

puts'Hello World'.red
puts'Hello World'.yellow
puts'Hello World'.green

Foreground Colour

Background Colour

puts'Hello World'.red_on_black
puts'Hello World'.black_on_light_blue
puts'Hello World'.green_on_pink

Background Colour

Additional Styles

puts'The text will be Bold!'.bold
puts'The text will be Underlined!'.underline
puts'The text will be Inversed!'.inverse

Styling

About

A simple gem to colourise console output.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages