You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems part of the problem is processing of newlines. When I put an empty line between rdoc and the module definition (from the first example), it works:
Thanks for the patch, it pointed me in th eright direction. Instead I changed the ruby parser to not assume that a TkCOMMENT is followed by a TkNL (newline).
Note that =begin and =end for documentation purposes is rarely used, commenting with # is preferred.
This is similar to https://github.com/rdoc/rdoc/issues/22 but I can't figure it out to be working in my case.
Using
ruby 1.9.2p180
andrdoc 3.6.1
. I see that https://github.com/rdoc/rdoc/issues/22 and https://github.com/rdoc/rdoc/pull/25 both were closed on April 13th and that 3.6.1 was last modified on May 16th ( https://github.com/rdoc/rdoc/commits/v3.6.1/ ), I also see the fix from the pull ( https://github.com/sgharms/rdoc/commit/e1451cd9396fb8b9692fd804066b6d66124de93f ) in my local version I've installed via gem.Test case 1: rdoc for module is not generated
yeilds to
I.e. the module is ignored completely.
Removing the
require
line or moving it below the rdoc works:yields to
Similar, when I've two modules in a file, only the first one gets documented when using
=begin
and=end
:yields to
The text was updated successfully, but these errors were encountered: