The document for this method should already include the parameter number.

# Iterate and do sth with +number+.
def iterate
  yield(number)
end

However, rdoc -C1 still reports something is undocumented.

  # ++ is not documented
  def iterate(); end

Any idea what the ++ means in the report and what's wrong in the doc?

有帮助吗?

解决方案

It is indeed bug in rdoc. ++ is just empty parameter name, which appears in method parameters list due to incorrect source code parsing. This happens when you have some method without any arguments, but which yields something.

I've made a pull request which hopefully fixes this problem completely. Once it gets included into next rdoc version your problem will go away. There is no workaround at the moment, simply ignore such messages.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top