From: Raphael Bauduin Date: 2006-05-11T20:22:08+09:00 Subject: Re: class << self On 5/11/06, Tim Uckun wrote: > > It is just another way add singleton methods to the outer scope > > (probably saw this in a module?). So this: > > Yes. I first tried to inherit from DBI but I couldn't because it's a > module. I then started reading it because it's a great way to learn a > language. > > > > > module Foo > > def Foo.a; end > > def Foo.b; end > > end > > Ok I get it. I guess this format is more familiar to my eyes but I can > see how the other way would be a little more economical and organized. > Here's a very interesting read: http://whytheluckystiff.net/articles/seeingMetaclassesClearly.html I discovered it yesterday myself Raph