How to make ap function (with its color) outputting to STDERR?
ap
STDERR
ap bla # this goes to STDOUT
Use the Kernel#ai method to get the awesome_print String, then pass it to any output stream you want:
Kernel#ai
String
STDERR.puts foo.ai