# File lib/yard/code_objects/module_object.rb, line 3 def inheritance_tree(include_mods = false) return [self] unless include_mods [self] + mixins(:instance).map do |m| next m unless m.respond_to?(:inheritance_tree) m.inheritance_tree(true) end.flatten end