Gem for terminal output coloring
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
CHANGELOG.md
Gemfile
LICENSE
README.md
Rakefile
palett.gemspec

README.md

Yet another one gem for terminal output coloring.

Usage:

require 'palett'

# working with simple strings
puts 'Just red'.red 
puts 'White on magenta '.white.magenta_background 
puts 'Bold black on white'.black.white_background.bold

# working with blocks
white do
  blue_background do
    puts ( 'a'..'z' ).map { |l| l }.join(', ')
  end
end

bold do
  red do
    white_background do
      puts File.open('Agile_Manifesto').read
      puts "-" * 50
    end
  end
end