----- Original Message -----
From: Benoit Cerrina <benoit.cerrina / writeme.com>
Newsgroups: comp.lang.ruby
To: ruby-talk ML <ruby-talk / ruby-lang.org>; <undisclosed-recipients: ;>
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