>>>>> "B" == Ben Giddings <ben / thingmagic.com> writes:

B> class Worker1
B>    def doStuff
B>      @stats = Stats.instance # The instance of the stats singleton is created

svg% cat b.rb
#!/usr/bin/ruby
require 'singleton'
class Stats
   include Singleton
end
p Stats.instance
Stats.instance_eval { p @__instance__}
svg% 

svg% b.rb
#<Stats:0x40092d60>
#<Stats:0x40092d60>
svg% 


 the instance is a class instance variable, because the class Stats will be
 not removed, the instance will be marked when the GC run


Guy Decoux