Directing basic output with Ruby
If you need to direct some basic output in Ruby say for some simple debugging in the absence of dedicated logging, you can do the following:
$stdout.puts "This goes to STDOUT"
$stderr.puts "This goes to STDERR"
Last updated: 09/08/2013