From: "yhara (Yutaka HARA)" Date: 2012-10-25T17:49:11+09:00 Subject: [ruby-core:48243] [ruby-trunk - Feature #5628] Module#basename Issue #5628 has been updated by yhara (Yutaka HARA). Target version changed from 2.0.0 to next minor ---------------------------------------- Feature #5628: Module#basename https://bugs.ruby-lang.org/issues/5628#change-31518 Author: trans (Thomas Sawyer) Status: Feedback Priority: Normal Assignee: matz (Yukihiro Matsumoto) Category: Target version: next minor Something I use fairly often: some_module.name.split("::").last It's useful for things like factory methods. It would be much nicer if we had: class Module def basename name.split("::").last end end -- http://bugs.ruby-lang.org/