Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double class name before the top-level constant #782

Open
gemmaro opened this issue Sep 27, 2020 · 0 comments
Open

Double class name before the top-level constant #782

gemmaro opened this issue Sep 27, 2020 · 0 comments

Comments

@gemmaro
Copy link
Contributor

gemmaro commented Sep 27, 2020

Here's a minimal example:

$ exa -T
.
└── lib
   └── main.rb
# lib/main.rb
def aaa
  BBB ::CCC
end

And then I run RDoc ($ rdoc).

In the generated HTML, there is a doubling of the class that is placed before the top-level constant.
The "top-level constant" here refers to the one at this link: https://docs.ruby-lang.org/en/master/doc/syntax/modules_and_classes_rdoc.html#label-Constants

Screenshot_2020-09-27 class Object - RDoc Documentation(2)

This doesn't happen if the constant is enclosed in parentheses.

Here's a case that seems more likely to be real: Pathname ::ENV['HOME']

Using RDoc 6.2.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant