On May 31, 2009, at 10:59 PM, Jorrel wrote:

> Is using File considered cheating?
>
>    puts File.readlines __FILE__

It usually is, yes.  Your version can be shortened though:

   puts File.read __FILE__

You can also do it more creatively, if a bit longer:

   DATA.rewind
   puts DATA.read
   __END__

James Edward Gray II