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 11d3c95 commit 0e05c99Copy full SHA for 0e05c99
lib/rdoc/class_module.rb
@@ -308,8 +308,8 @@ def nesting_namespaces
308
309
def fully_qualified_nesting_namespaces
310
return nesting_namespaces if nesting_namespaces.length < 2
311
- @fqns ||= nesting_namespaces.map.with_index do |_, i|
312
- nesting_namespaces[0..i].join("::")
+ @fqns ||= nesting_namespaces.inject([]) do |list, n|
+ list << (list.empty? ? n : "#{list.last}::#{n}")
313
end
314
315
0 commit comments