From: Robert Klemme Date: 2007-07-25T20:46:12+09:00 Subject: Re: Detecting singletons 2007/7/25, Robert Dober : > On 7/25/07, Robert Dober wrote: > Did I do something stupid? No, you seem to be dragged into the confusion between singleton and singleton. :-) > 694/194 > irb > irb(main):001:0> require 'singleton' > => true > irb(main):002:0> s = "abc" > => "abc" > irb(main):003:0> sing = class << s; self end > => #> > irb(main):004:0> Singleton === s > => false > irb(main):005:0> Singleton === sing > ********** > => false > ********** > irb(main):006:0> puts "??????" > ?????? > => nil > irb(main):007:0> The "singleton" you are referring to is the singleton class (btw, now I understand your code suggestion). I believe the OP wanted to know about Singleton as in class Foo include Singleton end Kind regards robert