diff options
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 29 |
1 files changed, 28 insertions, 1 deletions
@@ -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 |