Module#ancestors & prepend
2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
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 over 3 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100