Skip to content

Commit

Permalink
Changing documentation for better support
Browse files Browse the repository at this point in the history
Using the "p" command will not allow colored output in ruby 2.1.2p95 (possibly other versions as well). I spent roughly 30 minutes googling around before I tried using the "puts" command in stead, which worked.
  • Loading branch information
stephan-nordnes-eriksen committed Jan 30, 2015
1 parent 32eec26 commit fcdd7fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ To make your string colored wrap it with `Rainbow()` presenter and call
```ruby
require 'rainbow'

p Rainbow("this is red").red + " and " + Rainbow("this on yellow bg").bg(:yellow) + " and " + Rainbow("even bright underlined!").underline.bright
puts Rainbow("this is red").red + " and " + Rainbow("this on yellow bg").bg(:yellow) + " and " + Rainbow("even bright underlined!").underline.bright

# => "\e[31mthis is red\e[0m and \e[43mthis on yellow bg\e[0m and \e[4m\e[1meven bright underlined!\e[0m"
```
Expand Down

0 comments on commit fcdd7fc

Please sign in to comment.