From 7ae4b858b3ab7b51a6bda388414adf27fd71c23b Mon Sep 17 00:00:00 2001 From: Alexis Bernard Date: Mon, 4 Nov 2024 18:34:23 +0100 Subject: [ruby/rdoc] Display class ancestors in the sidebar #1183 https://github.com/ruby/rdoc/commit/50dda13426 --- lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'lib/rdoc/generator/template') diff --git a/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml b/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml index 1420da3201..6808b2bf87 100644 --- a/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +++ b/lib/rdoc/generator/template/darkfish/_sidebar_parent.rhtml @@ -1,11 +1,6 @@ -<%- if klass.type == 'class' then %> +<%- if klass.type == 'class' && (ancestors = klass.super_classes).any? -%> <%- end -%> -- cgit v1.2.3