From 8ededd9f3021335bc4af6d18b92dc8e08f9580bd Mon Sep 17 00:00:00 2001 From: Tobias Crawley Date: Mon, 5 Apr 2010 14:20:56 -0400 Subject: [PATCH] Switch to alias_method from alias to fix non-tty method aliasing. --- lib/ap/core_ext/string.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ap/core_ext/string.rb b/lib/ap/core_ext/string.rb index dcd668c..ab47c9a 100755 --- a/lib/ap/core_ext/string.rb +++ b/lib/ap/core_ext/string.rb @@ -11,7 +11,7 @@ class String # :nodoc: define_method :"#{color}ish" do "\033[0;#{30+i}m#{self}\033[0m" end else define_method color do self end - alias :"#{color}ish" color # <- This break Rdoc: Name or symbol expected (got #