From a75beac3188040a1f2de8ec27544e5c6fc54412b Mon Sep 17 00:00:00 2001 From: Joshua Young Date: Sun, 27 Oct 2024 12:08:22 +1000 Subject: [PATCH] fix incorrect super fallback in RedBlackTree::DataDelegation#respond_to_missing? --- lib/red_black_tree/node/data_delegation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/red_black_tree/node/data_delegation.rb b/lib/red_black_tree/node/data_delegation.rb index 745a76d..d1f8853 100644 --- a/lib/red_black_tree/node/data_delegation.rb +++ b/lib/red_black_tree/node/data_delegation.rb @@ -11,7 +11,7 @@ def method_missing method_name, *args, &block end def respond_to_missing? method_name, include_private = false - @data.respond_to? method_name, include_private || super + (@data.respond_to? method_name, include_private) || super end end end