From: "Hal E. Fulton" Date: 2001-11-20T11:15:33+09:00 Subject: [ruby-talk:25876] Re: DATA and rewind ----- Original Message ----- From: Benoit Cerrina Newsgroups: comp.lang.ruby To: ruby-talk ML ; Sent: Monday, November 19, 2001 4:11 PM Subject: [ruby-talk:25867] DATA and rewind > Hi, > not sure if its a bug but if a script has a __END__ in it I understand that > what is left of the > file is accessible through the DATA IO object. > However I did a DATA rewind and found that in truth DATA gives access to the > whole script file. It's a feature. :) If you don't like it, you could always replace the rewind method with your own, which would skip ahead past the __END__ again. Hal