Project

General

Profile

Actions

Feature #7414

closed

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

Added by robertgleeson (Robert Gleeson) about 12 years ago. Updated almost 11 years ago.

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

Description

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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0