From: Alexandru Popescu Date: 2006-10-10T09:20:20+09:00 Subject: Re: "def self.method" vs "class << self; def method" On 10/10/06, joevandyk@gmail.com wrote: > What's the difference between > > class Foo > class << self > def foo; end > end > end > > and > > class Foo > def self.foo; end > end > > Joe > As far as my understanding goes there is none. The rubies will probably use the first one when they are defining more than one class methods and this would save typing 5 * (methods - 1) chars :-). ./alex -- .w( the_mindstorm )p.