Permalink
Browse files

Update README.md

  • Loading branch information...
Sergey Gerasimov
Sergey Gerasimov committed Apr 2, 2012
1 parent 2558ed9 commit 0bb92c67bea32e50c9db430ce60005922d6bdfc2
Showing with 21 additions and 19 deletions.
  1. +21 −19 README.md
View
@@ -3,25 +3,27 @@ Yet another one gem for terminal output coloring.
Usage:
----
- require 'palett'
+```ruby
+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 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
+# 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
- nd
+bold do
+ red do
+ white_background do
+ puts File.open('Agile_Manifesto').read
+ puts "-" * 50
+ end
+ end
+end
+```

0 comments on commit 0bb92c6

Please sign in to comment.