From e40f320dca5ff849e0f0efc4ad3d2eb0f0ebb429 Mon Sep 17 00:00:00 2001 From: Alexis Bernard Date: Mon, 11 Nov 2024 21:52:00 +0100 Subject: [PATCH] Split list of class and instance methods in two 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 %>