From: nobu.nokada@... Date: 2002-12-14T03:32:16+09:00 Subject: Re: Can an .rbx file send it's own code? Hi, At Sat, 14 Dec 2002 02:27:03 +0900, Chris Pine wrote: > I was wondering if there's a way to make a web page (generated in Ruby) with > a link which, when clicked, would send itself... not the generated page, but > the actual page-generating Ruby program, the whole .rbx file. > > I can't figure out any easy way to do this... any thoughts? DATA.rewind print DATA.read __END__ # I suspect it doesn't work with eRuby/mod_ruby. -- Nobu Nakada