From 68525676407102753e63de33b987fe069d3e6625 Mon Sep 17 00:00:00 2001 From: Alexis Bernard Date: Wed, 13 Nov 2024 17:13:15 +0100 Subject: [PATCH] Split list of class and instance methods in two (#1206) Looking for a method is easier because eyes don't have to skip dashes or double colon. --- .../template/darkfish/_sidebar_methods.rhtml | 31 ++++++++++++------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml b/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml index 5b4c295bed..d09216a0f6 100644 --- a/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +++ b/lib/rdoc/generator/template/darkfish/_sidebar_methods.rhtml @@ -1,12 +1,21 @@ -<%- unless klass.method_list.empty? then %> - - -<%- end -%> +<% if (instance_methods = klass.instance_methods.sort).any? %> + +<% end %>