diff options
Diffstat (limited to 'tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.method.page')
-rw-r--r-- | tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.method.page | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.method.page b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.method.page new file mode 100644 index 00000000..9f7e4963 --- /dev/null +++ b/tests/doctool/DocExamples-1.0-Python-expected/DocExamples.Obj.method.page @@ -0,0 +1,49 @@ +<?xml version="1.0"?> + +<page id="DocExamples.Obj.method" + type="topic" + style="method" + xmlns="http://projectmallard.org/1.0/" + xmlns:api="http://projectmallard.org/experimental/api/" + xmlns:ui="http://projectmallard.org/experimental/ui/"> + <info> + <link type="guide" xref="DocExamples.Obj" group="method"/> + <api:function> + <api:returns> + <api:type>none</api:type> + </api:returns> + <api:name>doc_examples_obj_method</api:name> + <api:arg> + <api:type>DocExamplesObj *</api:type> + <api:name>self</api:name> + </api:arg> + <api:arg> + <api:type>gint</api:type> + <api:name>first_arg</api:name> + </api:arg> + <api:arg> + <api:type>gfloat</api:type> + <api:name>second_arg</api:name> + </api:arg> + </api:function> + </info> + <title>method</title> +<synopsis><code mime="text/x-python"> +@accepts(gint, gfloat) +@returns(none) +def method(first_arg, second_arg) +</code></synopsis> +<p>This is an example of how to document a method.</p> + +<table> +<tr> +<td><p>first_arg :</p></td> +<td><p>first argument</p></td> +</tr> +<tr> +<td><p>second_arg :</p></td> +<td><p>second argument</p></td> +</tr> +</table> +<p>Since 0.99</p> +</page> |