<?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__?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=useless-ruby-tricks-data-and-__end__</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 20:05:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Marnen Laibow-Koser</title>
		<link>http://shifteleven.com/articles/2009/02/09/useless-ruby-tricks-data-and-__end__/comment-page-1#comment-102397</link>
		<dc:creator>Marnen Laibow-Koser</dc:creator>
		<pubDate>Thu, 22 Mar 2012 14:35:55 +0000</pubDate>
		<guid isPermaLink="false">http://shifteleven.com/?p=207#comment-102397</guid>
		<description>Cool trick! For that, though, you might as well just use File.read(__FILE__), no?</description>
		<content:encoded><![CDATA[<p>Cool trick! For that, though, you might as well just use File.read(__FILE__), no?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Testing for Ruby DATA object &#124;</title>
		<link>http://shifteleven.com/articles/2009/02/09/useless-ruby-tricks-data-and-__end__/comment-page-1#comment-75377</link>
		<dc:creator>Testing for Ruby DATA object &#124;</dc:creator>
		<pubDate>Mon, 31 Oct 2011 04:33:57 +0000</pubDate>
		<guid isPermaLink="false">http://shifteleven.com/?p=207#comment-75377</guid>
		<description>[...] Ruby&#8217;s DATA object makes it possible to do neat little tricks like storing templates and datafiles within the script that uses it. [...]</description>
		<content:encoded><![CDATA[<p>[...] Ruby&#8217;s DATA object makes it possible to do neat little tricks like storing templates and datafiles within the script that uses it. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Truques de Ruby: DATA e __END__ &#171; Tino Gomes</title>
		<link>http://shifteleven.com/articles/2009/02/09/useless-ruby-tricks-data-and-__end__/comment-page-1#comment-26640</link>
		<dc:creator>Truques de Ruby: DATA e __END__ &#171; Tino Gomes</dc:creator>
		<pubDate>Sat, 05 Mar 2011 05:52:38 +0000</pubDate>
		<guid isPermaLink="false">http://shifteleven.com/?p=207#comment-26640</guid>
		<description>[...] Neste post de onde peguei o exemplo acima, apresenta outro uso com sinatra. [...]</description>
		<content:encoded><![CDATA[<p>[...] Neste post de onde peguei o exemplo acima, apresenta outro uso com sinatra. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Recuperar Archivos Formateados</title>
		<link>http://shifteleven.com/articles/2009/02/09/useless-ruby-tricks-data-and-__end__/comment-page-1#comment-16017</link>
		<dc:creator>Recuperar Archivos Formateados</dc:creator>
		<pubDate>Thu, 04 Nov 2010 11:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://shifteleven.com/?p=207#comment-16017</guid>
		<description>Gracias por los comentarios. Muy buen sitio, suerte!</description>
		<content:encoded><![CDATA[<p>Gracias por los comentarios. Muy buen sitio, suerte!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff W</title>
		<link>http://shifteleven.com/articles/2009/02/09/useless-ruby-tricks-data-and-__end__/comment-page-1#comment-15476</link>
		<dc:creator>Jeff W</dc:creator>
		<pubDate>Fri, 29 Oct 2010 01:20:14 +0000</pubDate>
		<guid isPermaLink="false">http://shifteleven.com/?p=207#comment-15476</guid>
		<description>Awesome! I had no idea about these features, but I can already think of uses for them.</description>
		<content:encoded><![CDATA[<p>Awesome! I had no idea about these features, but I can already think of uses for them.</p>
]]></content:encoded>
	</item>
	<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>

