summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-08 14:01:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-08 14:01:23 +0000
commita25d02b144c9560dc3d1139a4a0024b6ade6e21c (patch)
treea2e6a46c6901e03492632131817c30402dab124b /NEWS
parent44aa21d4aa25c036e1a6178c596f48cd1de9f254 (diff)
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
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS2
1 files changed, 2 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 0ee63b446e..cd7cad8436 100644
--- a/NEWS
+++ b/NEWS
@@ -41,6 +41,8 @@ with all sufficient information, see the ChangeLog file.
* New methods:
* Module#using, which activates refinements of the specified module only
in the current class or module definition.
+ * Module#singleton_class? returns true if the receiver is a singleton class
+ or false if it is an ordinary class or module.
* extended methods:
* Module#refine is no longer experimental.