We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a27fecf commit 1d8674aCopy full SHA for 1d8674a
lib/rdoc/parser/ruby.rb
@@ -376,7 +376,11 @@ def get_class_or_module container, ignore_constants = false
376
unless :on_const == name_t[:kind] || :on_ident == name_t[:kind]
377
raise RDoc::Error, "Invalid class or module definition: #{given_name}"
378
end
379
- given_name << '::' << name_t[:text]
+ if prev_container == container and !ignore_constants
380
+ given_name = name_t[:text]
381
+ else
382
+ given_name << '::' << name_t[:text]
383
+ end
384
385
386
skip_tkspace false
0 commit comments