def class_list(root = Registry.root, tree = TreeContext.new) out = String.new('') children = run_verifier(root.children) if root == Registry.root children += @items.select {|o| o.namespace.is_a?(CodeObjects::Proxy) } end service_children = Registry.at('Aws').children.select { |c| c.group == 'service' } # non-service classes out << "
  • " out << "
    " out << "Non-Service classes" out << "
  • ' # service classes out << "
  • " out << "
    " out << "Service Classes" out << "
  • ' out end def class_list_children(children, tree, options = {}) skip_services = options[:skip_services] out = String.new("") children.compact.sort_by(&:path).each do |child| next unless child.is_a?(CodeObjects::NamespaceObject) next if skip_services && child.group == 'service' name = child.namespace.is_a?(CodeObjects::Proxy) ? child.path : child.name grand_children = run_verifier(child.children) is_parent = grand_children.any? {|o| o.is_a?(CodeObjects::NamespaceObject) } out << "
  • " out << "
    " accessible_props = "aria-label='#{name} child nodes' aria-expanded='false' aria-controls='object_#{child.path}'" out << " " if is_parent out << linkify(child, name) out << " < #{child.superclass.name}" if child.is_a?(CodeObjects::ClassObject) && child.superclass if child.group == 'service' if name.downcase == :sts || name.downcase == :sso || name.downcase == :ssooidc out << " (aws-sdk-core)" else out << " (aws-sdk-#{name.downcase})" end end out << "" out << child.namespace.title out << "" out << "
    " if is_parent tree.nest do labeled_by = "aria-labelledby='object_#{child.path}'" out << "
    " end end out << "
  • " end out end