aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--object.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b0c8b509d0..09a8712b7a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Feb 20 12:18:00 2013 Zachary Scott <zachary@zacharyscott.net>
+
+ * object.c: Document Data class [Bug #7890] [ruby-core:52549]
+ Patch by Matthew Mongeau
+
Wed Feb 20 11:50:00 2013 Zachary Scott <zachary@zacharyscott.net>
* lib/mutex_m.rb: Add rdoc for Mutex_m module
diff --git a/object.c b/object.c
index 474d1e7efb..e3b13d8292 100644
--- a/object.c
+++ b/object.c
@@ -3112,6 +3112,12 @@ Init_Object(void)
rb_undef_method(rb_cClass, "extend_object");
rb_undef_method(rb_cClass, "append_features");
+ /*
+ * Document-class: Data
+ *
+ * This is a recommended base class for C extensions using Data_Make_Struct
+ * or Data_Wrap_Struct, see README.EXT for details.
+ */
rb_cData = rb_define_class("Data", rb_cObject);
rb_undef_alloc_func(rb_cData);