<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>source.mihelac.org - Overriding class methods in Ruby Comments</title>
  <id>tag:source.mihelac.org,2008:/2006/5/9/overriding-class-methods-in-ruby/comments</id>
  <generator version="0.7.3" uri="http://mephistoblog.com">Mephisto Noh-Varr</generator>
  <link href="http://source.mihelac.org/2006/5/9/overriding-class-methods-in-ruby/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/2006/5/9/overriding-class-methods-in-ruby" rel="alternate" type="text/html"/>
  <updated>2007-06-15T12:06:16Z</updated>
  <entry xml:base="http://source.mihelac.org/">
    <author>
      <name>Bojan</name>
    </author>
    <id>tag:source.mihelac.org,2006-05-09:20:96</id>
    <published>2006-05-17T01:35:19Z</published>
    <updated>2006-05-17T01:35:19Z</updated>
    <link href="http://source.mihelac.org/2006/5/9/overriding-class-methods-in-ruby" rel="alternate" type="text/html"/>
    <title>Comment on 'Overriding class methods in Ruby' by Bojan</title>
<content type="html">That's even better zimbatm. Ops, I was tempted to write super.columns again :)</content>  </entry>
  <entry xml:base="http://source.mihelac.org/">
    <author>
      <name>zimbatm</name>
    </author>
    <id>tag:source.mihelac.org,2006-05-09:20:95</id>
    <published>2006-05-16T14:43:12Z</published>
    <updated>2006-05-16T14:43:12Z</updated>
    <link href="http://source.mihelac.org/2006/5/9/overriding-class-methods-in-ruby" rel="alternate" type="text/html"/>
    <title>Comment on 'Overriding class methods in Ruby' by zimbatm</title>
<content type="html">damn : http://zimbatm.oree.ch/articles/2006/05/16/ruby-class-method-inheritance</content>  </entry>
  <entry xml:base="http://source.mihelac.org/">
    <author>
      <name>zimbatm</name>
    </author>
    <id>tag:source.mihelac.org,2006-05-09:20:94</id>
    <published>2006-05-16T14:29:31Z</published>
    <updated>2006-05-16T14:29:31Z</updated>
    <link href="http://source.mihelac.org/2006/5/9/overriding-class-methods-in-ruby" rel="alternate" type="text/html"/>
    <title>Comment on 'Overriding class methods in Ruby' by zimbatm</title>
<content type="html">Woops, hope this one is better (what formatting do you use ?) :

&lt;pre&gt;&lt;code&gt;irb(main):001:0&gt; class User
irb(main):002:1&gt;   def self.columns
irb(main):003:2&gt;     &quot;name,email&quot;
irb(main):004:2&gt;     end
irb(main):005:1&gt;   end
=&gt; nil
irb(main):006:0&gt; class Customer &amp;lt; User
irb(main):007:1&gt;   def self.columns
irb(main):008:2&gt;     super + &quot;,saldo&quot;
irb(main):009:2&gt;     end
irb(main):010:1&gt;   end
=&gt; nil
irb(main):011:0&gt; Customer.columns
=&gt; &quot;name,email,saldo&quot;
&lt;/code&gt;&lt;/pre&gt;</content>  </entry>
  <entry xml:base="http://source.mihelac.org/">
    <author>
      <name>zimbatm</name>
    </author>
    <id>tag:source.mihelac.org,2006-05-09:20:93</id>
    <published>2006-05-16T14:28:22Z</published>
    <updated>2006-05-16T14:28:22Z</updated>
    <link href="http://source.mihelac.org/2006/5/9/overriding-class-methods-in-ruby" rel="alternate" type="text/html"/>
    <title>Comment on 'Overriding class methods in Ruby' by zimbatm</title>
<content type="html">It could also be written like that :

irb(main):001:0&gt; class User
irb(main):002:1&gt;   def self.columns
irb(main):003:2&gt;     &quot;name,email&quot;
irb(main):004:2&gt;     end
irb(main):005:1&gt;   end
=&gt; nil
irb(main):006:0&gt; class Customer &amp;lt; User
irb(main):007:1&gt;   def self.columns
irb(main):008:2&gt;     super + &quot;,saldo&quot;
irb(main):009:2&gt;     end
irb(main):010:1&gt;   end
=&gt; nil
irb(main):011:0&gt; Customer.columns
=&gt; &quot;name,email,saldo&quot;</content>  </entry>
</feed>
