Module#ancestors & prepend
Wouldn't it be best if
Module#ancestors returned the modules & classes in the order they will be looked at?
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]
#1 Updated by Nobuyoshi Nakada almost 3 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100