Project

General

Profile

Actions

Bug #961

closed

a bug or a missleading documentation for Singleton module

Added by khelll (khaled alhabache) almost 16 years ago. Updated over 13 years ago.

Status:
Closed
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

Like0
Like0Like0Like0Like0Like0