From: Yukihiro Matsumoto Date: 2009-01-01T07:40:14+09:00 Subject: [ruby-core:21031] Re: [Bug #961] a bug or a missleading documentation for Singleton module Hi, In message "Re: [ruby-core:21029] [Bug #961] a bug or a missleading documentation for Singleton module" on Thu, 1 Jan 2009 07:01:36 +0900, khaled alhabache writes: |# in http://www.ruby-doc.org/stdlib/libdoc/singleton/rdoc/index.html |# a == b # => true |# is that a bug or missleading documentation ??? The text in the above document said (with properly formatted): a,b = Klass.instance, Klass.instance a == b # => true a.new # NoMethodError - new is private … Your input was: |a,b = Klass.instance # => [#] |b #=> nil Now you can see the difference. You've typed single Klass.instance. It apparently not a bug. You misread it, maybe because of missing newlines in text from ruby-doc.org. I probably caused by missing indentation in RDoc in signleton.rb. I will fix this. matz.