method

ancestors

v2_1_10 - Show latest stable - Class: Module
ancestors()
public

Returns a list of modules included in mod (including mod itself).

module Mod
  include Math
  include Comparable
end

Mod.ancestors    #=> [Mod, Comparable, Math]
Math.ancestors   #=> [Math]