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:
parent
eb1cf1d0fe
commit
8ededd9f30
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue