Project

General

Profile

ActionsLike0

Feature #7609

closed

Class#singleton_class?

Added by nobu (Nobuyoshi Nakada) over 12 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
[ruby-core:51087]

Description

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


Files

singleton_class_p.patch (1.34 KB) singleton_class_p.patch nobu (Nobuyoshi Nakada), 12/23/2012 05:48 PM

Added by nobu (Nobuyoshi Nakada) over 11 years ago

Revision a25d02b1

object.c: Module#singleton_class?

  • object.c (rb_mod_singleton_p): new method Module#singleton_class? to
    return whether the receiver is a singleton class or not.
    [ruby-core:51087] [Feature #7609]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

ActionsLike0

Also available in: Atom PDF