Project

General

Profile

Bug #1386

Spurious class "ARGF.class" in ObjectSpace

Added by candlerb (Brian Candler) about 11 years ago. Updated about 9 years ago.

Status:
Rejected
Priority:
Normal
Target version:
-
ruby -v:
ruby 1.9.1 (2008-12-16 revision 20768) [i686-linux]ruby 1.8.6 (2008-
Backport:

Description

=begin
$ ruby19 -e 'ObjectSpace.each_object(Class) { |c| puts c if c.to_s =~ /./ }'
ARGF.class

However this 'class' is not accessible by name:

$ ruby19 -e 'puts Object.const_get("ARGF.class")'
-e:1:in const_get': wrong constant name ARGF.class (NameError)
from -e:1:in
'
=end

Also available in: Atom PDF