I think I've cracked it. I had a look at rdoc.rb and the way that was set up and I've worked out what I was doing wrong. I was writing my code like this:
Code:
def a_method
#Comment describing the method
.... bit of code ....
end
For RDoc to detect the comment it needs to be outside of and before the method statement. For example:
Code:
#Comment describing the method
def a_method
.... bit of code ....
end
Perhaps I should have known that, but I could not find documentation stating that was where the method comments should go, but now I know.
Bookmarks