Bug #961: a bug or a missleading documentation for Singleton module
http://redmine.ruby-lang.org/issues/show/961

Author: khaled alhabache
Status: Open, Priority: Normal

require 'singleton'

class Klass
   include Singleton
   # ...
end

a,b = Klass.instance => [#<Klass:0xebaf12>]
b #=> nil

####################
# in http://www.ruby-doc.org/stdlib/libdoc/singleton/rdoc/index.html
# a == b # => true
# is that a bug or missleading documentation ???
###################


----------------------------------------
http://redmine.ruby-lang.org