method

ancestors

v1_8_6_287 - 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]