[Libguestfs] [PATCH] ruby: add :nodoc: comment for internal methods

Pino Toscano ptoscano at redhat.com
Tue May 27 08:45:38 UTC 2014


This way they are ignored by rdoc.
---
 generator/ruby.ml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/generator/ruby.ml b/generator/ruby.ml
index 1111993..88762ca 100644
--- a/generator/ruby.ml
+++ b/generator/ruby.ml
@@ -522,6 +522,15 @@ get_all_event_callbacks (guestfs_h *g, size_t *len_rtn)
  * +guestfs_%s+[http://libguestfs.org/guestfs.3.html#guestfs_%s]).
  */
 " f.name args ret f.shortdesc doc f.name f.name
+      ) else (
+        pr "\
+/*
+ * call-seq:
+ *   g.%s
+ *
+ * :nodoc:
+ */
+" f.name
       );
 
       (* Generate the function.  Prototype is completely different
-- 
1.9.3




More information about the Libguestfs mailing list