require 'win32ole'
# Creates OLE object to word
word = WIN32OLE.new("word.application")
word['Visible'] = TRUE;
word.documents.Add
0.upto(10){
word.selection.TypeText(Text="Hello Ruby Relatives!")
word.selection.TypeParagraph
}
word.close()