Project

General

Profile

Feature #7414

Now that const_get supports "Foo::Bar" syntax, so should const_defined?.

Added by robertgleeson (Robert Gleeson) about 8 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Target version:
[ruby-core:49770]

Description

class Foo
end
Object.const_get "Object::Foo" => Foo
Object.const_defined? "Object::Foo" => NameError (expected true).

Also available in: Atom PDF