Feature #767: Module#const_getでネストした定数の値を得られてもよいと思う http://redmine.ruby-lang.org/issues/show/767 起票者: rubikitch . ステータス: Open, 優先度: Low Object#const_getでネストした定数を得られてもいいと思うのですが、どうでしょうか? def my_const_get(name) name.split(/::/).inject(Object){|o,c| o.const_get(c) } end my_const_get "File::Stat" # => File::Stat Object.const_get "File::Stat" rescue $! # => #<NameError: wrong constant name File::Stat> ---------------------------------------- http://redmine.ruby-lang.org