From: Todd Werth Date: 2007-02-14T14:12:34+09:00 Subject: Re: Newb - uninitialized constant error Put all that in a method: def your_method() ... doc1 = TextDocumentPortrait.new("Document 1") ... end -- Posted via http://www.ruby-forum.com/.