Skip to content

Instantly share code, notes, and snippets.

@drbrain
Last active March 17, 2016 00:59
Show Gist options
  • Save drbrain/4523f713086825ec33bd to your computer and use it in GitHub Desktop.
Save drbrain/4523f713086825ec33bd to your computer and use it in GitHub Desktop.
diff --git a/src/clients/lib/ruby/rb_collection.c b/src/clients/lib/ruby/rb_collection.c
index 56e23f8..3c850cd 100644
--- a/src/clients/lib/ruby/rb_collection.c
+++ b/src/clients/lib/ruby/rb_collection.c
@@ -537,6 +537,9 @@ c_operands_each (VALUE self)
void
Init_Collection (VALUE mXmms)
{
+#if 0
+ mXmms = rb_define_module("Xmms");
+#endif
cColl = rb_define_class_under (mXmms, "Collection", rb_cObject);
rb_define_alloc_func (cColl, c_alloc);
@@ -559,6 +562,9 @@ Init_Collection (VALUE mXmms)
/* attribute methods */
rb_define_method (cColl, "attributes", c_coll_attributes, 0);
+ /* Document-const: NS_ALL
+ *
+ * I am documentation */
rb_define_const (cColl, "NS_ALL", rb_str_new2 (XMMS_COLLECTION_NS_ALL));
rb_define_const (cColl, "NS_COLLECTIONS",
rb_str_new2 (XMMS_COLLECTION_NS_COLLECTIONS));
Parsing sources...
100% [ 1/ 1] src/clients/lib/ruby/rb_collection.c
Generating Darkfish format into /Users/erichodel/tmp/xmms2-devel/rdoc...
Files: 1
Classes: 7 ( 7 undocumented)
Modules: 1 ( 1 undocumented)
Constants: 3 ( 2 undocumented)
Attributes: 0 ( 0 undocumented)
Methods: 26 (17 undocumented)
Total: 37 (27 undocumented)
27.03% documented
Elapsed: 0.1s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment