class CopsDocumentationGenerator

def table_of_content_for_department(department)

def table_of_content_for_department(department)
  type_title = department[0].upcase + department[1..-1]
  filename = "#{department_to_basename(department)}.adoc"
  content = +"=== Department xref:#{filename}[#{type_title}]\n\n"
  cops_of_department(department).each do |cop|
    anchor = cop.cop_name.sub('/', '').downcase
    content << "* xref:#{filename}##{anchor}[#{cop.cop_name}]\n"
  end
  content
end