From: "David A. Black" Date: 2005-08-12T05:33:48+09:00 Subject: Re: How do I use heredocs Hi -- On Fri, 12 Aug 2005, hsun wrote: > Hi, > > I have a simple test program. > > ==================== > class QuickTest > def testMe > str = < Some Application data > EOS puts str > end end > > if $0 == __FILE__ then > > $test = QuickTest.new > $test.testMe > end =========================== > > I got this error and could not figure out what's wrong? > > ============================================== > QuickTest.rb:21: can't find string "EOS" anywhere before EOF You need to put EOS on a line by itself. David -- David A. Black dblack@wobblini.net