From fcdd7fc2400ab099d1a5a4929128bb154844e75d Mon Sep 17 00:00:00 2001 From: Stephan Nordnes Eriksen Date: Fri, 30 Jan 2015 18:05:40 +0100 Subject: [PATCH] Changing documentation for better support 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. --- README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index bb273b4..9b34512 100644 --- a/README.markdown +++ b/README.markdown @@ -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" ```