Skip to content

Double class name before the top-level constant #782

@gemmaro

Description

@gemmaro

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions