<?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: Understanding class methods in ruby</title>
	<atom:link href="http://www.rubyfleebie.com/understanding-class-methods-in-ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rubyfleebie.com/understanding-class-methods-in-ruby/</link>
	<description>Because programming should be fun</description>
	<lastBuildDate>Wed, 04 Jan 2012 05:17:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: twitfreak</title>
		<link>http://www.rubyfleebie.com/understanding-class-methods-in-ruby/comment-page-1/#comment-932</link>
		<dc:creator>twitfreak</dc:creator>
		<pubDate>Wed, 31 Mar 2010 14:46:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/understanding-class-methods-in-ruby/#comment-932</guid>
		<description>good to know! Thanks a million!</description>
		<content:encoded><![CDATA[<p>good to know! Thanks a million!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rubywannabe</title>
		<link>http://www.rubyfleebie.com/understanding-class-methods-in-ruby/comment-page-1/#comment-869</link>
		<dc:creator>rubywannabe</dc:creator>
		<pubDate>Sun, 11 Oct 2009 15:25:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/understanding-class-methods-in-ruby/#comment-869</guid>
		<description>Ah, I think I know what happened.  Your blog cuts off comments with &amp;lt in it, if they&#039;re entered as the less than character instead of &quot;amper l t&quot; . what I originally said was, &quot;I see a lot of class &amp;lt&amp;lt, which I also find off-puttingly unclear.  I think a lot of people do it becuase it&#039;s obsure and therefore &quot;cool&quot;.  Great post.&quot;</description>
		<content:encoded><![CDATA[<p>Ah, I think I know what happened.  Your blog cuts off comments with &amp;lt in it, if they&#8217;re entered as the less than character instead of &#8220;amper l t&#8221; . what I originally said was, &#8220;I see a lot of class &amp;lt&amp;lt, which I also find off-puttingly unclear.  I think a lot of people do it becuase it&#8217;s obsure and therefore &#8220;cool&#8221;.  Great post.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rubywannabe</title>
		<link>http://www.rubyfleebie.com/understanding-class-methods-in-ruby/comment-page-1/#comment-868</link>
		<dc:creator>rubywannabe</dc:creator>
		<pubDate>Sun, 11 Oct 2009 15:22:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/understanding-class-methods-in-ruby/#comment-868</guid>
		<description>FYI my post got cut off</description>
		<content:encoded><![CDATA[<p>FYI my post got cut off</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rubywannabe</title>
		<link>http://www.rubyfleebie.com/understanding-class-methods-in-ruby/comment-page-1/#comment-867</link>
		<dc:creator>rubywannabe</dc:creator>
		<pubDate>Sun, 11 Oct 2009 15:20:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/understanding-class-methods-in-ruby/#comment-867</guid>
		<description>I see a lot of class </description>
		<content:encoded><![CDATA[<p>I see a lot of class</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sadeesh</title>
		<link>http://www.rubyfleebie.com/understanding-class-methods-in-ruby/comment-page-1/#comment-615</link>
		<dc:creator>sadeesh</dc:creator>
		<pubDate>Sat, 07 Jun 2008 02:31:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/understanding-class-methods-in-ruby/#comment-615</guid>
		<description>these basic are really useful to me to understand the class methods especially example with the notation &quot;</description>
		<content:encoded><![CDATA[<p>these basic are really useful to me to understand the class methods especially example with the notation &#8220;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paolo Perrotta</title>
		<link>http://www.rubyfleebie.com/understanding-class-methods-in-ruby/comment-page-1/#comment-152</link>
		<dc:creator>Paolo Perrotta</dc:creator>
		<pubDate>Thu, 19 Apr 2007 00:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/understanding-class-methods-in-ruby/#comment-152</guid>
		<description>Most Ruby coders actually prefer self.class_method to Test.class_method. The main rationale is that Test.class_method violates the &quot;Don&#039;t Repeat Yourself&quot; principle - you&#039;re repeating the name of the class in different places. If the name changes, you&#039;ll have to change it into all class methods definition.

As with all matters of style, YMMV.</description>
		<content:encoded><![CDATA[<p>Most Ruby coders actually prefer self.class_method to Test.class_method. The main rationale is that Test.class_method violates the &#8220;Don&#8217;t Repeat Yourself&#8221; principle &#8211; you&#8217;re repeating the name of the class in different places. If the name changes, you&#8217;ll have to change it into all class methods definition.</p>
<p>As with all matters of style, YMMV.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/understanding-class-methods-in-ruby/comment-page-1/#comment-123</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Fri, 13 Apr 2007 13:39:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/understanding-class-methods-in-ruby/#comment-123</guid>
		<description>Thanks Clinton,

I also prefer to use Test.class_method over self.class_method. It just feels more natural and intuitive to me.</description>
		<content:encoded><![CDATA[<p>Thanks Clinton,</p>
<p>I also prefer to use Test.class_method over self.class_method. It just feels more natural and intuitive to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clinton Forbes</title>
		<link>http://www.rubyfleebie.com/understanding-class-methods-in-ruby/comment-page-1/#comment-115</link>
		<dc:creator>Clinton Forbes</dc:creator>
		<pubDate>Thu, 12 Apr 2007 01:53:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/understanding-class-methods-in-ruby/#comment-115</guid>
		<description>Great post, as usual, Fleebie.

I was aware that I could define class methods using:

def self.class_method

But I didn&#039;t know about:

def Test.class_method

I will start using the second method because it is a lot clearer to me.</description>
		<content:encoded><![CDATA[<p>Great post, as usual, Fleebie.</p>
<p>I was aware that I could define class methods using:</p>
<p>def self.class_method</p>
<p>But I didn&#8217;t know about:</p>
<p>def Test.class_method</p>
<p>I will start using the second method because it is a lot clearer to me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/understanding-class-methods-in-ruby/comment-page-1/#comment-114</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Thu, 12 Apr 2007 01:52:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/understanding-class-methods-in-ruby/#comment-114</guid>
		<description>Hmmm... I should have check your code before actually update my post (I&#039;m learning how to blog everyday). You cannot access a class method the way you have indicated. super is for super classes, not for class methods.
</description>
		<content:encoded><![CDATA[<p>Hmmm&#8230; I should have check your code before actually update my post (I&#8217;m learning how to blog everyday). You cannot access a class method the way you have indicated. super is for super classes, not for class methods.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr eel</title>
		<link>http://www.rubyfleebie.com/understanding-class-methods-in-ruby/comment-page-1/#comment-113</link>
		<dc:creator>Mr eel</dc:creator>
		<pubDate>Thu, 12 Apr 2007 01:19:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.rubyfleebie.com/understanding-class-methods-in-ruby/#comment-113</guid>
		<description>&#039;A class method isn’t ’shared’ since it’s instances cannot access it.&#039;

This isn&#039;t actually true. An instance can access a class method via super. Like so:

self.super.class_method</description>
		<content:encoded><![CDATA[<p>&#8216;A class method isn’t ’shared’ since it’s instances cannot access it.&#8217;</p>
<p>This isn&#8217;t actually true. An instance can access a class method via super. Like so:</p>
<p>self.super.class_method</p>
]]></content:encoded>
	</item>
</channel>
</rss>

