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
classA::B# A::B.include(M) with Module.nesting == [A::B]includeMendclassAclassB# A::B.include(M) with Module.nesting == [A::B, A]includeMendend
RDoc::Mixin needs information of module nesting for correct module name lookup.
Currently, RDoc uses CodeObject#parent to represent module nesting but it changes while parsing.
Resolving module name of include/extend is done after all files are parsed. It is incorrect because it might be overwritten while parsing another file. We need something like RDoc::Mixin#module_nesting.
classA::B# parent of A::B is TopLevelincludeMendclassAclassB# parent of A::B changes to Aendend
The text was updated successfully, but these errors were encountered:
This two
include M
are not the same.RDoc::Mixin needs information of module nesting for correct module name lookup.
Currently, RDoc uses
CodeObject#parent
to represent module nesting but it changes while parsing.Resolving module name of include/extend is done after all files are parsed. It is incorrect because it might be overwritten while parsing another file. We need something like
RDoc::Mixin#module_nesting
.The text was updated successfully, but these errors were encountered: