How can I gain access to the keyboard so that I can feed output from
my ruby program into an application that only accepts input via the
keyboard?

I want the application to think the input is coming from the keyboard
when it is really coming from a ruby program output.

Thanks for any help.