Project

General

Profile

Actions

Bug #961

closed

a bug or a missleading documentation for Singleton module

Added by khelll (khaled alhabache) over 15 years ago. Updated almost 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