Project

General

Profile

Actions

Bug #961

closed

a bug or a missleading documentation for Singleton module

Added by khelll (khaled alhabache) over 13 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
ruby -v:
1.9
[ruby-core:21029]

Description

=begin
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 ???

###################
=end

Actions

Also available in: Atom PDF