diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-22 00:51:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-22 00:51:17 +0000 |
commit | 96f34160e40b98648d504e43f61d2b3de1c98812 (patch) | |
tree | bf9606ac9da3e5893ff23c0cb593f03b565bbef8 /object.c | |
parent | 6d1f74b3eaded44a31a9270949cc9b8a0b4aa989 (diff) | |
download | ruby-96f34160e40b98648d504e43f61d2b3de1c98812.tar.gz ruby-96f34160e40b98648d504e43f61d2b3de1c98812.tar.xz ruby-96f34160e40b98648d504e43f61d2b3de1c98812.zip |
* object.c (rb_class_superclass): rdoc improvement, a patch from
Gaston Ramos <ramos.gaston AT gmail.com> in [ruby-core:17371].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 * */ |