Question

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?

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top