Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使ap功能(及其颜色)输出到STDERR?
ap
STDERR
ap bla # this goes to STDOUT
使用该Kernel#ai方法获取 awesome_print String,然后将其传递给您想要的任何输出流:
Kernel#ai
String
STDERR.puts foo.ai