Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update README.md

  • Loading branch information...
commit 0bb92c67bea32e50c9db430ce60005922d6bdfc2 1 parent 2558ed9
Sergey Gerasimov authored

Showing 1 changed file with 21 additions and 19 deletions. Show diff stats Hide diff stats

  1. +21 19 README.md
40 README.md
Source Rendered
@@ -3,25 +3,27 @@ Yet another one gem for terminal output coloring.
3 3 Usage:
4 4 ----
5 5
6   - require 'palett'
  6 +```ruby
  7 +require 'palett'
7 8
8   - # working with simple strings
9   - puts 'Just red'.red
10   - puts 'White on magenta '.white.magenta_background
11   - puts 'Bold black on white'.black.white_background.bold
  9 +# working with simple strings
  10 +puts 'Just red'.red
  11 +puts 'White on magenta '.white.magenta_background
  12 +puts 'Bold black on white'.black.white_background.bold
12 13
13   - # working with blocks
14   - white do
15   - blue_background do
16   - puts ( 'a'..'z' ).map { |l| l }.join(', ')
17   - end
18   - end
  14 +# working with blocks
  15 +white do
  16 + blue_background do
  17 + puts ( 'a'..'z' ).map { |l| l }.join(', ')
  18 + end
  19 +end
19 20
20   - bold do
21   - red do
22   - white_background do
23   - puts File.open('Agile_Manifesto').read
24   - puts "-" * 50
25   - end
26   - end
27   - nd
  21 +bold do
  22 + red do
  23 + white_background do
  24 + puts File.open('Agile_Manifesto').read
  25 + puts "-" * 50
  26 + end
  27 + end
  28 +end
  29 +```

0 comments on commit 0bb92c6

Please sign in to comment.
Something went wrong with that request. Please try again.