From: Yukihiro Matsumoto Date: 2011-11-30T18:17:26+09:00 Subject: [ruby-core:41409] Re: [ruby-trunk - Bug #5690][Open] Module#qualified_const_get Hi, In message "Re: [ruby-core:41408] Re: [ruby-trunk - Bug #5690][Open] Module#qualified_const_get" on Wed, 30 Nov 2011 16:52:36 +0900, Yehuda Katz writes: |> * is there any use-case for this method? | |We use it often in Rails. Could you show us the concrete example? It is difficult for me to imagine. |> * if Bar is not a class nor module, what kind error should be raised? |> | |TypeError: "(…) is not a class/module" Understood. |> * is qualified_const_get an appropriate name for the function? |> | |Unknown. It's what we call it in Rails ;) How about Foo.const_get("Bar::Baz") or Foo.const_get(:Bar, :Baz) ? matz.