ap
STDERR
ap bla # this goes to STDOUT
使用Kernel#ai方法获取美妙的打印String,然后将其传递到您想要的任何输出流中:
Kernel#ai
String
STDERR.puts foo.ai