-
Notifications
You must be signed in to change notification settings - Fork 454
RDoc::Mixin needs module nesting information #1291
Copy link
Copy link
Closed
Description
This two include M are not the same.
class A::B
# A::B.include(M) with Module.nesting == [A::B]
include M
end
class A
class B
# A::B.include(M) with Module.nesting == [A::B, A]
include M
end
endRDoc::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.
class A::B
# parent of A::B is TopLevel
include M
end
class A
class B
# parent of A::B changes to A
end
endReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels