<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Useless Ruby Tricks: DATA and __END__</title>
	<atom:link href="http://shifteleven.com/articles/2009/02/09/useless-ruby-tricks-data-and-__end__/feed" rel="self" type="application/rss+xml" />
	<link>http://shifteleven.com/articles/2009/02/09/useless-ruby-tricks-data-and-__end__</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 29 Jul 2010 17:19:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
	<item>
		<title>By: computertricks</title>
		<link>http://shifteleven.com/articles/2009/02/09/useless-ruby-tricks-data-and-__end__/comment-page-1#comment-9021</link>
		<dc:creator>computertricks</dc:creator>
		<pubDate>Sun, 20 Jun 2010 10:50:01 +0000</pubDate>
		<guid isPermaLink="false">http://shifteleven.com/?p=207#comment-9021</guid>
		<description>... This really is just what I have been browsing for. Exactly how long did it take to write this? Thanks a bucket load for this superb knowledge.</description>
		<content:encoded><![CDATA[<p>&#8230; This really is just what I have been browsing for. Exactly how long did it take to write this? Thanks a bucket load for this superb knowledge.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Riccardo</title>
		<link>http://shifteleven.com/articles/2009/02/09/useless-ruby-tricks-data-and-__end__/comment-page-1#comment-5485</link>
		<dc:creator>Riccardo</dc:creator>
		<pubDate>Fri, 29 Jan 2010 13:47:42 +0000</pubDate>
		<guid isPermaLink="false">http://shifteleven.com/?p=207#comment-5485</guid>
		<description>About DATA... I just discovered that it is just a File associated with the current script opened for reading and &quot;seeked&quot; after __END__.  Try this:

   puts DATA.path

or

  DATA.seek(0, 0)
  puts DATA.read

and you&#039;ll have your script printed...</description>
		<content:encoded><![CDATA[<p>About DATA&#8230; I just discovered that it is just a File associated with the current script opened for reading and &#8220;seeked&#8221; after __END__.  Try this:</p>
<p>   puts DATA.path</p>
<p>or</p>
<p>  DATA.seek(0, 0)<br />
  puts DATA.read</p>
<p>and you&#8217;ll have your script printed&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clone TinyURL in 40 lines of Ruby code &#171; saush</title>
		<link>http://shifteleven.com/articles/2009/02/09/useless-ruby-tricks-data-and-__end__/comment-page-1#comment-4505</link>
		<dc:creator>Clone TinyURL in 40 lines of Ruby code &#171; saush</dc:creator>
		<pubDate>Sun, 06 Dec 2009 13:17:05 +0000</pubDate>
		<guid isPermaLink="false">http://shifteleven.com/?p=207#comment-4505</guid>
		<description>[...] used a Sinatra trick that allows me to embed the template within the same source code itself. While normally I would [...]</description>
		<content:encoded><![CDATA[<p>[...] used a Sinatra trick that allows me to embed the template within the same source code itself. While normally I would [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: malev&#39;s blog &#187; Sinatra en un solo archivo</title>
		<link>http://shifteleven.com/articles/2009/02/09/useless-ruby-tricks-data-and-__end__/comment-page-1#comment-3378</link>
		<dc:creator>malev&#39;s blog &#187; Sinatra en un solo archivo</dc:creator>
		<pubDate>Sat, 12 Sep 2009 04:29:27 +0000</pubDate>
		<guid isPermaLink="false">http://shifteleven.com/?p=207#comment-3378</guid>
		<description>[...] http://shifteleven.com/articles/2009/02/09/useless-ruby-tricks-data-and-__end__   one file, Ruby, sinatral  Address: http://blog.malev.com.ar/2009/09/sinatra-en-un-solo-archivo/    &#171; La caja de herramientas de Ruby     Trackbackno comment untill now [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://shifteleven.com/articles/2009/02/09/useless-ruby-tricks-data-and-__end__" rel="nofollow">http://shifteleven.com/articles/2009/02/09/useless-ruby-tricks-data-and-__end__</a>   one file, Ruby, sinatral  Address: <a href="http://blog.malev.com.ar/2009/09/sinatra-en-un-solo-archivo/" rel="nofollow">http://blog.malev.com.ar/2009/09/sinatra-en-un-solo-archivo/</a>    &laquo; La caja de herramientas de Ruby     Trackbackno comment untill now [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
