diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-13 09:25:15 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-13 09:25:15 +0000 |
commit | 01137aa51a2b7dff299ea6e9625bcb1dcafcb02c (patch) | |
tree | 79a8c1d0bf843179b8182cfcd8d4e17ec32ecca6 | |
parent | 33686fb4cc9a56b138c346bfc76597f30e7e8f66 (diff) |
* object.c: Class#inherited RDoc added. a patch from Daniel
Berger <djberg96 at gmail.com> [ruby-core:08942]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | object.c | 29 |
2 files changed, 33 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Fri Oct 13 18:19:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org> + + * object.c: Class#inherited RDoc added. a patch from Daniel + Berger <djberg96 at gmail.com> [ruby-core:08942] + Fri Oct 13 02:30:12 2006 Nobuyoshi Nakada <nobu@ruby-lang.org> * lib/test/unit/collector/dir.rb (Collector::Dir#collect): prepend @@ -495,6 +495,34 @@ rb_obj_is_kind_of(obj, c) /* + * Document-method: inherited + * + * call-seq: + * inherited(subclass) + * + * Callback invoked whenever a subclass of the current class is created. + * + * Example: + * + * class Foo + * def self.inherited(subclass) + * puts "New subclass: #{subclass}" + * end + * end + * + * class Bar < Foo + * end + * + * class Baz < Bar + * end + * + * produces: + * + * New subclass: Bar + * New subclass: Baz + */ + +/* * Document-method: singleton_method_added * * call-seq: @@ -605,7 +633,6 @@ rb_obj_dummy() return Qnil; } - /* * call-seq: * obj.tainted? => true or false |