From: Brian Candler Date: 2004-10-21T17:15:14+09:00 Subject: Re: Singleton Class or Module Functions? > It seems the above two types of constructs can be used interchangeably. They > both have but one "instance". The both have the same access to methods. The > singleton has to be instantiated the first go around, but since that's > behind > the scenes, that doesn't really make any difference (or does it?). In the first case, the object *is* the module. In the second case, you have two objects: a Class, and an instance of that Class. I've never seen the need for or benefit of the second case, because to me a Class is like a potato printer for making a bunch of objects which share the same methods. If you're only ever going to produce one instance (and you are enforcing that with Singleton) then there's little point in having a Class in the first place. You might as well just create one object directly: Foo = Object.new class <