1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

Switch to alias_method from alias to fix non-tty method aliasing.

This commit is contained in:
Tobias Crawley 2010-04-05 14:20:56 -04:00
parent eb1cf1d0fe
commit 8ededd9f30

View file

@ -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 #<RubyToken::TkDSTRING
alias_method :"#{color}ish", color # <- This break Rdoc: Name or symbol expected (got #<RubyToken::TkDSTRING
end
end