Adding Text To Microsoft Word with Ruby

I actually created this to automate the cut and paste of text from the web to a word document for consumption by my “plain-text-challenged” customers.

require 'win32ole'
word = WIN32OLE.new('word.application')
word.visible = true
word.documents.add
word.selection.typetext("Hello World!\n")