Issue #5628 has been updated by mame (Yusuke Endoh).

Target version changed from 1.9.4 to 2.0.0

Hello,

2011/11/14 Thomas Sawyer <transfire / gmail.com>:
> Something I use fairly often:
>
>    some_module.name.split("::").last


Personally, I've never used such a hack.  When do you use?

-- 
Yusuke Endoh <mame / tsg.ne.jp>

----------------------------------------
Feature #5628: Module#basename
https://bugs.ruby-lang.org/issues/5628#change-25509

Author: trans (Thomas Sawyer)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: 
Target version: 2.0.0


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/