aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-22 00:51:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-22 00:51:17 +0000
commitfa57f78b9b1c5a1e80ddc5114949479791e02872 (patch)
treebf9606ac9da3e5893ff23c0cb593f03b565bbef8
parent3381bd94d175bc5cc369bb3aeb210be24da49d3f (diff)
downloadruby-fa57f78b9b1c5a1e80ddc5114949479791e02872.tar.gz
* object.c (rb_class_superclass): rdoc improvement, a patch from
Gaston Ramos <ramos.gaston AT gmail.com> in [ruby-core:17371]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--object.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 813344744b..5e8b20337f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Jun 22 09:51:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * object.c (rb_class_superclass): rdoc improvement, a patch from
+ Gaston Ramos <ramos.gaston AT gmail.com> in [ruby-core:17371].
+
Sun Jun 22 09:22:32 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
* README.EXT: translated README.EXT.ja
diff --git a/object.c b/object.c
index e4f513763e..83b541b205 100644
--- a/object.c
+++ b/object.c
@@ -1437,6 +1437,12 @@ rb_class_new_instance(int argc, VALUE *argv, VALUE klass)
* File.superclass #=> IO
* IO.superclass #=> Object
* Object.superclass #=> BasicObject
+ * class Foo; end
+ * class Bar < Foo; end
+ * Bar.superclass #=> Foo
+ *
+ * returns nil when the given class hasn't a parent class:
+ *
* BasicObject.superclass #=> nil
*
*/