Project

General

Profile

Actions

Bug #11063

open

Special singleton class should return true for singleton_class? test

Added by rbjl (Jan Lelis) over 6 years ago. Updated almost 2 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
[ruby-core:<unknown>]

Description

This seems wrong (or at least inconsistent):

nil.singleton_class.singleton_class? #=> false
true.singleton_class.singleton_class? #=> false
false.singleton_class.singleton_class? #=> false

Files

special_singletons.patch (1.16 KB) special_singletons.patch rbjl (Jan Lelis), 04/12/2015 07:50 PM

No data to display

Actions

Also available in: Atom PDF