1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
matz 2006-10-13 09:25:15 +00:00
parent 33686fb4cc
commit 01137aa51a
2 changed files with 33 additions and 1 deletions

View file

@ -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> Fri Oct 13 02:30:12 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit/collector/dir.rb (Collector::Dir#collect): prepend * lib/test/unit/collector/dir.rb (Collector::Dir#collect): prepend

View file

@ -494,6 +494,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 * Document-method: singleton_method_added
* *
@ -605,7 +633,6 @@ rb_obj_dummy()
return Qnil; return Qnil;
} }
/* /*
* call-seq: * call-seq:
* obj.tainted? => true or false * obj.tainted? => true or false