<?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"
	>
<channel>
	<title>Comments on: Insta-block with Symbol#to_proc</title>
	<atom:link href="http://www.sitepoint.com/blogs/2006/06/19/insta-block-with-symbolto_proc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2006/06/19/insta-block-with-symbolto_proc/</link>
	<description>News, opinion, and fresh thinking for web developers and designers. The official podcast of sitepoint.com.</description>
	<pubDate>Thu, 04 Dec 2008 04:38:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Aklomy Baddy</title>
		<link>http://www.sitepoint.com/blogs/2006/06/19/insta-block-with-symbolto_proc/#comment-200278</link>
		<dc:creator>Aklomy Baddy</dc:creator>
		<pubDate>Sun, 11 Mar 2007 15:14:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1584#comment-200278</guid>
		<description>Ne v dengah ne v muzejnoj pyli</description>
		<content:encoded><![CDATA[<p>Ne v dengah ne v muzejnoj pyli</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Rails Conference 2006 - Day 4</title>
		<link>http://www.sitepoint.com/blogs/2006/06/19/insta-block-with-symbolto_proc/#comment-37524</link>
		<dc:creator>Rails Conference 2006 - Day 4</dc:creator>
		<pubDate>Fri, 14 Jul 2006 04:16:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1584#comment-37524</guid>
		<description>[...] Symbol.to_proc [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Symbol.to_proc [&#8230;]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: timlucas</title>
		<link>http://www.sitepoint.com/blogs/2006/06/19/insta-block-with-symbolto_proc/#comment-31196</link>
		<dc:creator>timlucas</dc:creator>
		<pubDate>Mon, 19 Jun 2006 18:16:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1584#comment-31196</guid>
		<description>Fenrir2, that's just about it. You gotta take into account whether the proc invoker will pass in arguments:
&lt;pre&gt;&lt;code&gt;
class Symbol
  def to_proc
    proc { &#124;obj, *args&#124; obj.send(self, *args) }
  end
end
&lt;/code&gt;&lt;/pre&gt;

See &lt;a href="http://blogs.pragprog.com/cgi-bin/pragdave.cgi/Tech/Ruby/ToProc.rdoc" rel="nofollow"&gt;PragDave's article on it&lt;/a&gt; as well as &lt;a href="http://dev.rubyonrails.org/browser/trunk/activesupport/lib/active_support/core_ext/symbol.rb" rel="nofollow"&gt;the latest version that's included with Rails&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Fenrir2, that&#8217;s just about it. You gotta take into account whether the proc invoker will pass in arguments:</p>
<pre><code>
class Symbol
  def to_proc
    proc { |obj, *args| obj.send(self, *args) }
  end
end
</code></pre>
<p>See <a href="http://blogs.pragprog.com/cgi-bin/pragdave.cgi/Tech/Ruby/ToProc.rdoc" rel="nofollow">PragDave&#8217;s article on it</a> as well as <a href="http://dev.rubyonrails.org/browser/trunk/activesupport/lib/active_support/core_ext/symbol.rb" rel="nofollow">the latest version that&#8217;s included with Rails</a>.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Fenrir2</title>
		<link>http://www.sitepoint.com/blogs/2006/06/19/insta-block-with-symbolto_proc/#comment-31194</link>
		<dc:creator>Fenrir2</dc:creator>
		<pubDate>Mon, 19 Jun 2006 17:57:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.sitepoint.com/blogs/?p=1584#comment-31194</guid>
		<description>Is this the code for symbol#to_proc, or is there a more general version?
&lt;code&gt;
class Symbol
  def to_proc
    proc {&#124;o&#124; o.send(self)}
  end
end&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Is this the code for symbol#to_proc, or is there a more general version?<br />
<code>
class Symbol
  def to_proc
    proc {|o| o.send(self)}
  end
end</code></p>]]></content:encoded>
	</item>
</channel>
</rss>
