< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事(スレッド移動)
N :次の記事
|<:前のスレッド
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
Issue #5690 has been updated by marcandre (Marc-Andre Lafortune).
Cool slide :-)
+1 from me, but modifying existing `const_get`. No incompatibility as "Foo::Bar" are currently invalid constant names. And `const_set` should be modified as well (raises a Name if the path up to the last constant name does not exist or is not a Module/Class).
----------------------------------------
Bug #5690: Module#qualified_const_get
https://bugs.ruby-lang.org/issues/5690#change-27605
Author: wycats (Yehuda Katz)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: 2.0.0
ruby -v: -
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
--
http://bugs.ruby-lang.org/