[#8815] Segfault in libc strlen, via rb_str_new2 — "Sean E. Russell" <ser@...>

Howdy,

12 messages 2006/09/09
[#8817] Re: Segfault in libc strlen, via rb_str_new2 — Eric Hodel <drbrain@...7.net> 2006/09/09

On Sep 8, 2006, at 10:10 PM, Sean E. Russell wrote:

[RDoc] Patch for object.c and Class.inherited

From: Daniel Berger <djberg96@...>
Date: 2006-09-28 03:14:35 UTC
List: ruby-core #8942
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Below is an rdoc patch that adds documentation for the Class.inherited
callback.  Change the class names if you hate the whole "Foo/Bar/Baz"
thing. :)

Regards,

Dan

- --- object.orig 2006-09-27 21:09:14.000000000 -0600
+++ object.c    2006-09-27 21:08:46.000000000 -0600
@@ -605,6 +605,33 @@
     return Qnil;
 }

+/*
+ * 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
+*/

 /*
  *  call-seq:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFFGz333p/dorzCFX0RAuc7AKCfb96SFEdanqAQpxHPwYBRUfNSPACfe2a7
yAAnJa7YZPjyj+DsJtEW0FE=
=1AZL
-----END PGP SIGNATURE-----

In This Thread

Prev Next