From: Tony Arcieri Date: 2009-12-20T03:28:39+09:00 Subject: Re: Encapsulating Information and Behavior without State --000e0cd4c7ba5850a0047b1906fc Content-Type: text/plain; charset=ISO-8859-1 On Sat, Dec 19, 2009 at 8:58 AM, Robert Klemme wrote: > What's wrong with doing > > class UnitType class< [...] > class Second < UnitType > This is the "Ruby-like" way to do it in my mind: using the singleton class and inheritance. I have never found a valid reason to use singleton.rb and don't really understand why it even exists. Ruby has first-class singletons. -- Tony Arcieri Medioh! A Kudelski Brand --000e0cd4c7ba5850a0047b1906fc--