Actions
Bug #6658
closedModule#ancestors & prepend
Description
Wouldn't it be best if Module#ancestors
returned the modules & classes in the order they will be looked at?
Currently:
module M; end
class C; prepend M; end
C.ancestors # => [C, M, Class, Object, Kernel, BasicObject]
# even though actual lookup order is [M, C, Class, Object, Kernel, BasicObject]
Actions
Like0
Like0