Issue #7609 has been updated by marcandre (Marc-Andre Lafortune).


Moving to Feature requests.

Just curious about use case?

Also, can be hacked in Ruby already...

    class Class
      def singleton_class?
        Class.new(self) && true rescue false
      end
    end
 


----------------------------------------
Bug #7609: Class#singleton_class?
https://bugs.ruby-lang.org/issues/7609#change-35036

Author: nobu (Nobuyoshi Nakada)
Status: Open
Priority: Normal
Assignee: 
Category: core
Target version: 
ruby -v: r38573


Related to #7554, there is no way to tell the called method is a singleton method or an ordinary method.


-- 
http://bugs.ruby-lang.org/