<?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: Transparent Property Change Listeners in Ruby</title>
	<atom:link href="http://www.rawblock.com/2007/02/07/transparent-property-change-listeners-in-ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rawblock.com/2007/02/07/transparent-property-change-listeners-in-ruby/</link>
	<description>Random braindumps vaguely related to coding</description>
	<pubDate>Tue, 06 Jan 2009 09:38:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Julian Doherty</title>
		<link>http://www.rawblock.com/2007/02/07/transparent-property-change-listeners-in-ruby/#comment-3</link>
		<dc:creator>Julian Doherty</dc:creator>
		<pubDate>Fri, 09 Feb 2007 00:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.rawblock.com/2007/02/07/transparent-property-change-listeners-in-ruby/#comment-3</guid>
		<description>Thanks for the feedback pit capitain :) Changes incorporated in the original post (and prompted me to read up more on class_eval)</description>
		<content:encoded><![CDATA[<p>Thanks for the feedback pit capitain <img src='http://www.rawblock.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Changes incorporated in the original post (and prompted me to read up more on class_eval)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pit Capitain</title>
		<link>http://www.rawblock.com/2007/02/07/transparent-property-change-listeners-in-ruby/#comment-2</link>
		<dc:creator>Pit Capitain</dc:creator>
		<pubDate>Thu, 08 Feb 2007 10:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.rawblock.com/2007/02/07/transparent-property-change-listeners-in-ruby/#comment-2</guid>
		<description>Julian, there's no need for define_method and eval in the setup method. If you change "instance_eval" to "class_eval", you can simple use def to define the two methods. In any case, you can remove the calls to eval. To get rid of a warning (run your code with ruby -w) change the line "@listeners = {} if @listeners.nil?" to "@listeners &#124;&#124;= {}". Regards, Pit</description>
		<content:encoded><![CDATA[<p>Julian, there&#8217;s no need for define_method and eval in the setup method. If you change &#8220;instance_eval&#8221; to &#8220;class_eval&#8221;, you can simple use def to define the two methods. In any case, you can remove the calls to eval. To get rid of a warning (run your code with ruby -w) change the line &#8220;@listeners = {} if @listeners.nil?&#8221; to &#8220;@listeners ||= {}&#8221;. Regards, Pit</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.277 seconds -->
