RDoc documentation of iterators

  • Thread starter Stephan Kämper
  • Start date
S

Stephan Kämper

Hi all,

when I run rdoc on my code, I think the iterator doc is slightly wrong -
or am I wrong?

If the code is, for example:

class Foo
def each
3.times{ |i| yield i }
end
end

I get this rdoc:

....
Public Instance methods

each() {|i }| ...}

I think the 1st '}' shouldn't be there.

BTW I'm using the 1.8.1-13-rc2 Win installer.

Happy rubying

Stephan
 
D

Dave Thomas

Hi all,

when I run rdoc on my code, I think the iterator doc is slightly wrong
- or am I wrong?

each() {|i }| ...}

I think the 1st '}' shouldn't be there.

That's a bug: I've fixed it in the latest CVS versions.

Thanks for the report and the testcase.


Cheers

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top