Project

General

Profile

Actions

Feature #5690

closed

Module#qualified_const_get

Added by wycats (Yehuda Katz) almost 11 years ago. Updated over 6 years ago.

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

Description

It would be great if there was a way to dynamically load a constant path:

module Foo
  module Bar
    module Baz
    end
  end
end

Foo.qualified_const_get("Bar::Baz") => Foo::Bar::Baz

Files

noname (500 Bytes) noname Anonymous, 12/01/2011 10:23 AM
bug5690.pdf (615 KB) bug5690.pdf tenderlovemaking (Aaron Patterson), 07/01/2012 01:29 AM
noname (500 Bytes) noname Anonymous, 07/02/2012 11:53 PM
p2c.diff (4.86 KB) p2c.diff tenderlovemaking (Aaron Patterson), 10/24/2012 02:40 AM

Related issues 3 (1 open2 closed)

Related to Ruby master - Feature #5666: Make rb_path2class publicClosedtenderlovemaking (Aaron Patterson)11/24/2011Actions
Related to Ruby master - Feature #12319: `Module#const_get` does not accept symbol with nested nameOpenActions
Has duplicate Ruby master - Feature #767: Module#const_getでネストした定数の値を得られてもよいと思うRejectedmatz (Yukihiro Matsumoto)11/21/2008Actions
Actions

Also available in: Atom PDF