From: "marcandre (Marc-Andre Lafortune)" Date: 2012-12-24T04:31:48+09:00 Subject: [ruby-core:51102] [ruby-trunk - Bug #7609] Class#singleton_class? 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/