class RDoc::ClassModule

def marshal_dump # :nodoc:

:nodoc:
def marshal_dump # :nodoc:
  attrs = attributes.sort.map do |attr|
    [attr.name, attr.rw]
  end
  method_types = methods_by_type.map do |type, visibilities|
    visibilities = visibilities.map do |visibility, methods|
      method_names = methods.map do |method|
        method.name
      end
      [visibility, method_names.uniq]
    end
    [type, visibilities]
  end
  [ MARSHAL_VERSION,
    @name,
    full_name,
    @superclass,
    parse(@comment),
    attrs,
    constants.map do |const|
      [const.name, parse(const.comment)]
    end,
    includes.map do |incl|
      [incl.name, parse(incl.comment)]
    end,
    method_types,
  ]
end