class RDoc::Include

def <=> other

def <=> other
  return unless self.class === other
  name <=> other.name
end

def == other # :nodoc:

:nodoc:
def == other # :nodoc:
  self.class == other.class and
    self.name == other.name
end

def full_name

def full_name
  m = self.module
  RDoc::ClassModule === m ? m.full_name : @name
end

def initialize(name, comment)

def initialize(name, comment)
  super()
  @name = name
  self.comment = comment
end

def inspect # :nodoc:

:nodoc:
def inspect # :nodoc:
  "#<%s:0x%x %s.include %s>" % [
    self.class,
    object_id,
    parent_name, @name,
  ]
end

def module

def module
  RDoc::TopLevel.find_module_named(@name) || @name
end