0
现在我有我的文档在下面的示例代码:如何编写代码示例,在代码中缺少代码?
some_keeper = SomeKeeper.new
some_keeper.report
# ...
# save the report to a file
# ...
some_keeper.fix!
的save the report to a file
不会在后面填满,它只会保持这样的文档中,“缺少代码”片断。
在文档中是否存在“代码缺失”的标准?
注:我使用Ruby编写并使用Yardoc作为文档。
对不起,我不够清楚。我发布的代码是一个代码片段_inside_文档文件。缺少的代码部分是一个例子的一部分。 – Kostas 2012-04-26 07:46:31