You do not specify what the word document means. Is this a Word 2003 style document file? Is this a Word 2007 docx file? Is this something that Word can open up than style support?
If the latter is what you want, you can use RTF, which is somewhat simpler than the document format. There is a library called Ruby RTF that should do what you want, although I honestly never used it myself.
Chuck source share