From: Charles Oliver Nutter Date: 2008-08-18T16:32:51+09:00 Subject: Re: End of Yaml Michael T. Richter wrote: > This whole __END__/DATA thing *does not work as expected*. It's yet > another situation where "principle of least surprise" doesn't work at > all in Ruby. Consider: DATA is only provided for the file immediately executed on the command line. You read from DATA twice, so the second read is at EOF and returns "". - Charlie