diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | object.c | 6 |
2 files changed, 11 insertions, 0 deletions
@@ -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 @@ -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 * */ |