class YARD::CodeObjects::ModuleObject

Represents a Ruby module.

def inheritance_tree(include_mods = false)

Returns:
  • (Array) - a list of namespace objects

Parameters:
  • include_mods (Boolean) -- if true, will include mixed in
def inheritance_tree(include_mods = false)
  return [self] unless include_mods
  [self] + mixins(:instance, :class).map do |m|
    next if m == self
    next m unless m.respond_to?(:inheritance_tree)
    m.inheritance_tree(true)
  end.compact.flatten.uniq
end