class RDoc::Generator::JsonIndex

def index_classes

def index_classes
  debug_msg "  generating class search index"
  documented = @classes.uniq.select do |klass|
    klass.document_self_or_methods
  end
  documented.each do |klass|
    debug_msg "    #{klass.full_name}"
    record = klass.search_record
    @index[:searchIndex]     << search_string(record.shift)
    @index[:longSearchIndex] << search_string(record.shift)
    @index[:info]            << record
  end
end