Project

General

Profile

Actions

Bug #1386

closed

Spurious class "ARGF.class" in ObjectSpace

Added by candlerb (Brian Candler) about 15 years ago. Updated about 13 years ago.

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

Actions

Also available in: Atom PDF

Like0
Like0Like0